Ninjakreborn Posted July 24, 2006 Share Posted July 24, 2006 I know the variables are but how do I access them, the entire set that has to do with information gathering, the browser, ip address, address visited from and everything else? Quote Link to comment https://forums.phpfreaks.com/topic/15480-referer/ Share on other sites More sharing options...
ChaosXero Posted July 24, 2006 Share Posted July 24, 2006 $_SERVER[' '] variables. Look them up in the manual. Quote Link to comment https://forums.phpfreaks.com/topic/15480-referer/#findComment-62803 Share on other sites More sharing options...
Ninjakreborn Posted July 24, 2006 Author Share Posted July 24, 2006 ah, thanks. Quote Link to comment https://forums.phpfreaks.com/topic/15480-referer/#findComment-62806 Share on other sites More sharing options...
mainewoods Posted July 24, 2006 Share Posted July 24, 2006 This is the page you want:http://www.php.net/manual/en/reserved.variables.php Quote Link to comment https://forums.phpfreaks.com/topic/15480-referer/#findComment-62811 Share on other sites More sharing options...
Ninjakreborn Posted July 24, 2006 Author Share Posted July 24, 2006 thanks Quote Link to comment https://forums.phpfreaks.com/topic/15480-referer/#findComment-62820 Share on other sites More sharing options...
wildteen88 Posted July 24, 2006 Share Posted July 24, 2006 Or simply run this:[code]<table border="0" cellpadding="2" cellspacing="1" width="900" bgcolor="#333" align="center"> <tr style="background-color: #e1e1e1;"> <th width="35%">Variable</th> <th>Value</th> </tr><?phpforeach($_SERVER as $key => $value){ echo ' <tr> <td style="background-color: #f1f1f1">$_SERVER[\''. $key . '\']</td> <td style="background-color: #ffffff">' . $value . "</td> </tr>\n";}?></table>[/code]to see what each server variable is set to. Quote Link to comment https://forums.phpfreaks.com/topic/15480-referer/#findComment-62920 Share on other sites More sharing options...
Ninjakreborn Posted July 24, 2006 Author Share Posted July 24, 2006 actually that was what I was looking for, how to cycle through them all and see what they contain, I am wanting to play with theEnviromentRequestSessionandservervariables and I was looking for that up there, I tried var_dump and print_rthanks for the advice Quote Link to comment https://forums.phpfreaks.com/topic/15480-referer/#findComment-62934 Share on other sites More sharing options...
mainewoods Posted July 24, 2006 Share Posted July 24, 2006 tryprint_r($_SERVER); //prints out all of them with their index names Quote Link to comment https://forums.phpfreaks.com/topic/15480-referer/#findComment-63141 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.