funz has asked for the wisdom of the Perl Monks concerning the following question:
The problem is that everytime its called it stores the page where the image is being called from, instead of the referrer to the page. Example: I link the site from http://www.site.com and go from http://www.site.com to http://www.domain.com, so it should store http://www.site.com as a referrer but instead it stores http://www.domain.com. This is the main program im using, but ive modified it a couple of times, calling it form SSI, which works, but not from an image.
#!/usr/bin/perl $store = "/home/domain/public_html/tracker/data.dat"; open (DATAF,">>$store"); print DATAF "$ENV{'HTTP_REFERER'}\n"; close(DATAF); print "Content-type: image/gif\n\n"; open(IMG, "/home/domain/public_html/image.gif"); print <IMG>; close(IMG); exit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: $ENV{'HTTP_REFERRER'} and images
by shemp (Deacon) on Jun 10, 2004 at 21:13 UTC | |
|
Re: $ENV{'HTTP_REFERRER'} and images
by hsinclai (Deacon) on Jun 10, 2004 at 21:14 UTC | |
by funz (Initiate) on Jun 10, 2004 at 21:43 UTC | |
by shemp (Deacon) on Jun 10, 2004 at 21:52 UTC | |
by hsinclai (Deacon) on Jun 10, 2004 at 21:53 UTC | |
by eXile (Priest) on Jun 11, 2004 at 00:20 UTC | |
|
Re: $ENV{'HTTP_REFERRER'} and images
by etcshadow (Priest) on Jun 10, 2004 at 23:13 UTC | |
by funz (Initiate) on Jun 14, 2004 at 04:43 UTC |