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 mean tnq
Which is a perfect example of runtime polymorphism?
What is htaccess in php?
what does this symbol mean in php?
What is the difference between abstract class and interface in php?
Does wordpress still use php?
How to run the interactive php shell from the command line interface?
What is whitespace in html?
What is the use of header() function in PHP? What the Limitation of HEADER()?
How do I sort numbers in php?
What is a php session?
What is form validation in php?
Which escape sequences can be used in single quoted strings in php?
What is $_ get and $_ post in php?
How can I find my php version?