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


Please Help Members By Posting Answers For Below Questions

What is $_ request?

525


What is php resource type?

534


Which of the data type is compound datatype supported by PHP?

552


How long will it take to learn php?

513


What the difference between the 'bitwise and' operator and the 'logical and' operator?

523






Do you know how to declare an array in php?

546


How to create an array from php string?

529


What is php key?

513


Explain me difference between mysql_connect and mysql_pconnect?

555


How to enable cURL in PHP?

658


What is ci in php?

545


How to return ascii value of character in php?

595


Write a program to upload a file in php?

547


How can I increase my website session?

542


Who is known as the father of php?

562