aximbigfan Posted February 18, 2008 Share Posted February 18, 2008 Hi, this is very hard to put into words, but I need to find the filename of the script that the client requested. For example, say we have a file named "index.php" I want to have a bit of code in "index.php" that detects the filename. If that makes an sense at all... Thanks, Chris Link to comment https://forums.phpfreaks.com/topic/91715-figure-out-filename-of-script/ Share on other sites More sharing options...
uniflare Posted February 18, 2008 Share Posted February 18, 2008 use SERVER variables: $_SERVER['PHP_SELF']; Link to comment https://forums.phpfreaks.com/topic/91715-figure-out-filename-of-script/#findComment-469739 Share on other sites More sharing options...
aximbigfan Posted February 18, 2008 Author Share Posted February 18, 2008 Wow, I'm surprised you managed to figure out what I wanted so quick! Thanks a bunch! Chris Seto Link to comment https://forums.phpfreaks.com/topic/91715-figure-out-filename-of-script/#findComment-469741 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.