How can I get the only name of the current executing file?

Answer Posted / palaniraja.wordpress.com

echo end(explode('/',$_SERVER["SCRIPT_NAME"]));

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many functions are there in php?

521


How to create a table using php?

543


What is the use of header() function in php?

551


What are PHP Magic Methods/Functions. List them.

546


Explain me what is the meaning of a persistent cookie?

489






Do you know what's the difference between __sleep and __wakeup?

532


What is cms php?

504


What is ci in php?

545


Can I learn php without knowing c?

561


What are the encryption techniques in php?

552


What are the features of php?

556


How long will it take to learn php?

513


What is filter_var?

537


What is php date function?

575


What is difference between sql and php?

552