Posted by Philip Hallstrom on 07/25/05 22:34
> 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
[Back to original message]
|