How can I get the only name of the current executing file?
Answer Posted / bhawani
$name=basename($_SERVER['PHP_SELF']);
echo $name;
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What does a special set of tags do in php?
Tell us how can we access the data sent through the url with the post method?
What is the role of php.ini file?
Why php is sometimes called as embedded scripting language?
What is polymorphism php?
What u mean by query?
Tell me what does the array operator '===' means?
I am writing an application in php that outputs a printable version of driving directions. It contains some long sentences, and I am a neat freak, and would like to make sure that no line exceeds 50 characters. How do I accomplish that with php?
Explain how you can update memcached when you make changes to php?
How to make a class in php?
Which php framework is best?
Explain what is the function file_get_contents() usefull for?
Is rent a variable cost?
Explain what does the function get_magic_quotes_gpc() means?
How to Pass JSON Data in a URL using CURL in PHP?