Get the current script file name

If I have PHP script, how can I get the filename from inside that script?

Also, given the name of a script of the form jquery.js.php, how can I extract just the "jquery.js" part?

252
задан Shog9 17 January 2014 в 15:07
поделиться