Re: How would you create a tracking pixel?

From: Date: Mon, 25 Jul 2005 19:34:18 +0000
Subject: Re: How would you create a tracking pixel?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-219308@lists.php.net to get a copy of this message
I want to create a pixel that can be used to track certain activity on the site. I've got it working fine: I just mod_rewrite "spacer.gif" to a PHP app that does what I want it to do; but then I don't know how to actually return a blank pixel. Can anyone point me in the right direction?
Create a 1x1 blank pixel gif and then... Header("Content-type: image/gif"); readfile("/path/to/spacer.gif"); Why use mod_rewrite? Why not just do something like... href="/path/to/phpapp.php/spacer.gif" ? -philip

« previous php.general (#219308) next »