RE: Can I get the IP address from a visitor?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



That would be in one of the $_SERVER[] variables.

Look here for more info:
http://uk.php.net/manual/en/reserved.variables.server.php

HTH
J

-----Original Message-----
From: Lars Kristiansson [mailto:lasse@xxxxxxxxxxxxxx] 
Sent: 30 November 2009 23:47
To: php-general@xxxxxxxxxxxxx
Subject:  Can I get the IP address from a visitor?

Hi!

This is probably the wrong forum. Please redirect me if im out of place.

I would like to find out what IP address my visitor uses when visiting a php

script page on my domain. This page would contain a form in which the 
visitor would state his/her message.

My goal is to create purchase-orders written on unique files, and to 
separate them my idea was to baptize files with the IP addresses, which 
would ive each visitor an unique purchase-order...

Any hints to a newbie?

Cheers, Lars


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux