LoopyLoo Posted October 7, 2008 Share Posted October 7, 2008 Hi, I need to do the following: The code will be placed into header.php and will check the filename of the current web page (i.e. contact_us.php) and then display an image according to the page filename. Link to comment https://forums.phpfreaks.com/topic/127370-checking-the-filename-of-the-page/ Share on other sites More sharing options...
kenrbnsn Posted October 7, 2008 Share Posted October 7, 2008 This, $_SERVER["SCRIPT_FILENAME"], should contain the name of the script that is running. Ken Link to comment https://forums.phpfreaks.com/topic/127370-checking-the-filename-of-the-page/#findComment-658903 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.