Forum Moderators: DixonJones

Message Too Old, No Replies

Two URL's - One Site

tracking with PHP

         

shoreman

9:40 pm on Apr 7, 2002 (gmt 0)

10+ Year Member



I have two URL's pointing to the same site / IP.

Using PHP is it possible to find out which URL the visitor is using?

pipeline

6:39 pm on Apr 8, 2002 (gmt 0)

10+ Year Member



shoreman,

taken from php.net online manual:

prototype:

string gethostbyaddr ( string ip_address)

example:

$r_hostname = gethostbyaddr($REMOTE_ADDR);

The PHP Manual has other related functions that should solve all your problems...experiment a little...

hope this helps :)

mark_roach

10:32 pm on Apr 8, 2002 (gmt 0)

10+ Year Member



I think the $HTTP_HOST variable may give you the information you are looking for.

BTW welcome to wmw pipeline.