Jump to content

Archived

This topic is now archived and is closed to further replies.

Ninjakreborn

referer

Recommended Posts

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?

Share this post


Link to post
Share on other sites
This is the page you want:

http://www.php.net/manual/en/reserved.variables.php

Share this post


Link to post
Share on other sites
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>
<?php

foreach($_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.

Share this post


Link to post
Share on other sites
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 the
Enviroment
Request
Session
and
server
variables and I was looking for that up there, I tried var_dump and print_r
thanks for the advice

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.