How can I get the only name of the current executing file?
Answer Posted / hitha
$file_path=$_SERVER["SCRIPT_NAME"];
$break=explode('/',$file_path);
$file_name=$break[count($break)-1];
Is This Answer Correct ? | 12 Yes | 0 No |
Post New Answer View All Answers
What is mysqli_fetch_array?
Tell me is it possible to remove the html tags from data?
What is data structure in php?
What is the advantage of runtime polymorphism?
What is mod_php?
Where to put php files in apache server?
Do I need apache for php?
How to call php function in jquery?
What is x+ mode in fopen() used for?
Whether php supports microsoft sql server?
Is gender a dependent variable?
Describe the security vulnerability of PHP?
List some features of php that are deprecated in php
Explain me soundex() and metaphone()?
Where are cookies stored php?