PC Nerd Posted April 11, 2007 Share Posted April 11, 2007 is there a global array or value, which tells me the name of the script that im running... eg if the script is "directory/Script.php" then the value would be : $GLOBAL['Page'] = "Script.php" thankx Link to comment https://forums.phpfreaks.com/topic/46520-solved-global-array/ Share on other sites More sharing options...
clown[NOR] Posted April 11, 2007 Share Posted April 11, 2007 think this might do the trick $_SERVER['SCRIPT_FILENAME']; Link to comment https://forums.phpfreaks.com/topic/46520-solved-global-array/#findComment-226411 Share on other sites More sharing options...
PC Nerd Posted April 11, 2007 Author Share Posted April 11, 2007 thankx ill give it a go..... ive actually got to write the script, but it should only take a few minutes... is there a value that stores the IP address of the request? Link to comment https://forums.phpfreaks.com/topic/46520-solved-global-array/#findComment-226413 Share on other sites More sharing options...
clown[NOR] Posted April 11, 2007 Share Posted April 11, 2007 think thisone $_SERVER['REMOTE_ADDR']; Link to comment https://forums.phpfreaks.com/topic/46520-solved-global-array/#findComment-226417 Share on other sites More sharing options...
clown[NOR] Posted April 11, 2007 Share Posted April 11, 2007 take a look here...http://us2.php.net/reserved.variables Link to comment https://forums.phpfreaks.com/topic/46520-solved-global-array/#findComment-226418 Share on other sites More sharing options...
PC Nerd Posted April 11, 2007 Author Share Posted April 11, 2007 thankx, is there a way to tell the "master file"....... the file this is in, is included at the begining of every page..... and i want to know the name of the file which included is..... eg file.php includes database.inc but is the filename of the database.inc, or is it file.php????? Link to comment https://forums.phpfreaks.com/topic/46520-solved-global-array/#findComment-226431 Share on other sites More sharing options...
clown[NOR] Posted April 11, 2007 Share Posted April 11, 2007 dunno... did u look trough the link i gave you? Link to comment https://forums.phpfreaks.com/topic/46520-solved-global-array/#findComment-226433 Share on other sites More sharing options...
PC Nerd Posted April 11, 2007 Author Share Posted April 11, 2007 yup, hang on im testign the script Link to comment https://forums.phpfreaks.com/topic/46520-solved-global-array/#findComment-226440 Share on other sites More sharing options...
PC Nerd Posted April 11, 2007 Author Share Posted April 11, 2007 ive got it working! thankx guys Link to comment https://forums.phpfreaks.com/topic/46520-solved-global-array/#findComment-226451 Share on other sites More sharing options...
clown[NOR] Posted April 11, 2007 Share Posted April 11, 2007 no problem m8 =) Link to comment https://forums.phpfreaks.com/topic/46520-solved-global-array/#findComment-226455 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.