moss Posted January 21, 2003 Share Posted January 21, 2003 What is the variable for returning the script name that is being opened? Something like $PHP_SELF but just the script name like script.php. :) Thanks :) Link to comment Share on other sites More sharing options...
0 pringlex Posted January 21, 2003 Share Posted January 21, 2003 I'm not 100% sure, but after a (very) brief look around, I don't know if such a function exists... You could take $PHP_SELF and do some kind of ereg_ or preg_replace to discard everything before the final /, but I don't know enough about these functions to tell you how, sorry. Perhaps someone else could shed some light on the subject... Link to comment Share on other sites More sharing options...
Question
moss
What is the variable for returning the script name that is being opened? Something like $PHP_SELF but just the script name like script.php. :)
Thanks :)
Link to comment
Share on other sites
1 answer to this question
Recommended Posts