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 does the array operator '===' means?
Tell me what is the use of isset() in php?
What is uri routing?
What is api example?
Is laravel better than codeigniter?
How can you associate a variable with a session?
What is use of count() function in php?
How does cookies work in php?
Explain what does the function get_magic_quotes_gpc() means?
What is list function with their uses.
What are constructor and destructor in PHP?
How to find the index of an element in an array php?
Why is facebook still using php?
Do you know is it possible to extend the execution time of a php script?
What are different types of runtime errors in php?