global variables in php
Moderator: General Moderators
-
andrei.mita
- Forum Commoner
- Posts: 65
- Joined: Sun May 08, 2005 4:06 am
- Location: Barlad/Romania
global variables in php
i want to make a hit counter that get as much info as it can from the viewer but in order to do so i need know all the var that i can get from the browser. where can i find a complet list of this variables. I know about $_SERVER, $_ENV and stuff but i don't know what to put between the ['']. can you please point me a url?
Try this:
Code: Select all
echo '<HR><PRE>'; print_r($_SERVER); echo '</PRE>';Already been discussed here: viewtopic.php?t=33678&highlight=
Great sample code for *everything* you could want from the *client* (Thats why $_SERVER and SUPER GLOBALS aren't the best answer): http://phpsniff.sourceforge.net/
Great sample code for *everything* you could want from the *client* (Thats why $_SERVER and SUPER GLOBALS aren't the best answer): http://phpsniff.sourceforge.net/
-
andrei.mita
- Forum Commoner
- Posts: 65
- Joined: Sun May 08, 2005 4:06 am
- Location: Barlad/Romania
-
andrei.mita
- Forum Commoner
- Posts: 65
- Joined: Sun May 08, 2005 4:06 am
- Location: Barlad/Romania
http://us2.php.net/manual/en/function.gethostbyaddr.phpandrei.mita wrote:have another question. how can i see the hostname of the computer instead of the ip address. for instance, i have the 162.134.34.2 ip address but also the pc4-tcnet-barlad.rdslink.ro address (something like that). thank you.
-
andrei.mita
- Forum Commoner
- Posts: 65
- Joined: Sun May 08, 2005 4:06 am
- Location: Barlad/Romania