PDA

View Full Version : IP Address Detection with PHP?


kaotic
08-20-2004, 08:43 PM
IP Address detection with PHP... is that possible?

I'm just curious because I need to be able to set up an IF statement within a vBulletin template using the user's IP address as part of the variable.

Dean C
08-20-2004, 09:01 PM
$_SERVER['REMOTE_ADDR'] is the variable you want :)

kaotic
08-20-2004, 10:38 PM
Ahh! Thank you very much. :)

Xenon
08-26-2004, 07:08 AM
as an addition:

to complie the vb standarts you can use the constant set by vb: IPADDRESS