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? 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. 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. 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 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 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. 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 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 Link to comment https://forums.phpfreaks.com/topic/15480-referer/#findComment-63141 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.