reaper7861 Posted June 6, 2006 Share Posted June 6, 2006 ok im using a page style such as index.php?page=main.php and want it to echo out the page its on for insertion into a tracking system, all i have gotten it to do so far is give index.php with phpself is there another function i could use to call the full page info,i need it to output the info after the ? such as page=main.php.Thanks in advancecrazy Link to comment https://forums.phpfreaks.com/topic/11352-pulling-the-pagewhateverphp/ Share on other sites More sharing options...
ober Posted June 6, 2006 Share Posted June 6, 2006 $_GET['page'] will give you "main.php"$_SERVER['SCRIPT_NAME'] will give you "index.php" or "folder/index.php" if you're not executing from the root.$_SERVER['QUERY_STRING'] will give you "page=main.php" (I think) Link to comment https://forums.phpfreaks.com/topic/11352-pulling-the-pagewhateverphp/#findComment-42559 Share on other sites More sharing options...
reaper7861 Posted June 6, 2006 Author Share Posted June 6, 2006 Ok i feel completely stupid now...i didnt even think about that....THANKS it works perfectly.$_GET['page'] worked perfect.Crazy Link to comment https://forums.phpfreaks.com/topic/11352-pulling-the-pagewhateverphp/#findComment-42561 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.