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


Please Help Members By Posting Answers For Below Questions

What is the importance of parser in php?

606


How can we determine whether a php variable is an instantiated object of a certain class?

520


What is the difference between explode () and split () functions in php?

609


What are access specifiers?

523


How many types of inheritances used in php and how we achieve it.

481






What is php array function?

538


Is php coding easy?

501


What is php constructor?

536


Is wordpress a php framework?

517


What are the disadvantages of php?

508


What are psrs? Choose 1 and briefly describe it?

945


Why do we use htaccess

630


What is the purpose of the '.myd' file extension? What do thes file contain?

535


What are the method available in form submitting?

527


Explain what is memcache?

506