Jump to content


Photo

referer


  • Please log in to reply
7 replies to this topic

#1 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 24 July 2006 - 12:54 PM

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?

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.


#2 ChaosXero

ChaosXero
  • Members
  • PipPipPip
  • Advanced Member
  • 80 posts

Posted 24 July 2006 - 01:15 PM

$_SERVER[' '] variables.  Look them up in the manual.

#3 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 24 July 2006 - 01:20 PM

ah, thanks.

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.


#4 mainewoods

mainewoods
  • Members
  • PipPipPip
  • Advanced Member
  • 685 posts
  • LocationMaine

Posted 24 July 2006 - 01:23 PM

This is the page you want:

http://www.php.net/m...d.variables.php



#5 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 24 July 2006 - 01:32 PM

thanks

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.


#6 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 24 July 2006 - 03:55 PM

Or simply run this:
<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>
to see what each server variable is set to.

#7 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 24 July 2006 - 04:07 PM

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

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.


#8 mainewoods

mainewoods
  • Members
  • PipPipPip
  • Advanced Member
  • 685 posts
  • LocationMaine

Posted 24 July 2006 - 09:38 PM

try
print_r($_SERVER); //prints out all of them with their index names




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users