How can I get the only name of the current executing file?
Answer Posted / vaishali
basename($_SERVER('PHP_SELF'));
give the current file name
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
Explain what is meant by pear in php?
How to remove white spaces from the beginning and/or the end of a string in php?
What is explode() in php?
What are variables in research examples?
What are the advantages of object-oriented programming in php?
Could we start a variable with number like $4name?
Why framework is used in php?
Write syntax to open a file in php?
What is form action php?
What is the use of print_r function in php?
How to turn on the session support in php?
Define urlencode() and urldecode() used in php?
How we can declare variable in php?
Tell me what should we do to be able to export data into an excel file?
Explain how to run the interactive php shell from the command line interface?