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 a php certification?
What is the difference between "echo" and "print" in php?
What is the Default syntax used in PHP?
Tell me how to create a text file in php?
What is session cookies php?
Tell me how is it possible to propagate a session id?
How to get useful error messages in php?
What is rest api in php?
What is string in php?
What are computer variables?
How can we access the data sent through the url with the post method?
Where is php code written?
Which php framework is best for web development?
What are php magic methods?
How many ways to include array elements in double-quoted strings using php?