where does the visitor come from?
| From: | Emanuele De Fazio | Date: | Thu, 19 Jul 2001 07:43:58 +0000 |
| Subject: | where does the visitor come from? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-58627@lists.php.net to get a copy of this message | ||
Hi,
I call a script from an html page (for example "test.htm") in this way:
<img src="myscript.php">
This script returns at the end an image, but before it takes and save to
a file
some informations like the visitor's ip and where he comes from
($refer=$HTTP_USER_AGENT).
My problem is that $refer gives me always "http://..../test.htm"(that's
normal by the way)
which is the page who call the script with the "img" html tag.
What I want to have in $refer is the url of the page that contain the
link who has direct the
visitor in my page "test.htm" which will call then the script
myscript.php.
There is a way for do this?(I guess yes, but I find nothing about this)
Thanks
-------------------------------
*Emanuele De Fazio*
Unix Administrator
SchlumbergerSema - Sema S.p.A.
Viale Carlo Viola, 76
11026 Pont Saint Martin (AO)
Italy
Phone: + 39.0125.810373
E-Mail: emanuele.defazio@semagroup.it