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 Quote Link to comment 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']; Quote Link to comment 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? Quote Link to comment Share on other sites More sharing options...
clown[NOR] Posted April 11, 2007 Share Posted April 11, 2007 think thisone $_SERVER['REMOTE_ADDR']; Quote Link to comment 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 Quote Link to comment 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????? Quote Link to comment 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? Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
clown[NOR] Posted April 11, 2007 Share Posted April 11, 2007 no problem m8 =) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.