> How would you get the server to parse PHP if it was just a static HTML > page? > If it parses PHP, then why would you need to use a gif at all? So many > sites use them, I just wondered what data they get and how they get it.
The file that creates your image could be a PHP script: <img src="file.php?id=12"> or something similar. That .php page can use sessions, cookies, etc, just like any other PHP script. I don't think you can determine the page that the request is coming from, since each request is unique, but you could pass an ID in the image request that identifies the page. After the .php page gets/sets whatever data it wants, it then sends the appropriate image header and the data for a single pixel image. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com > >From: "John W. Holmes" <[EMAIL PROTECTED]> > >Reply-To: <[EMAIL PROTECTED]> > >To: "'Jason Paschal'" <[EMAIL PROTECTED]>,<[EMAIL PROTECTED]> > >Subject: RE: [PHP] Just to ask knowledgable ppl > >Date: Sun, 2 Mar 2003 11:29:55 -0500 > > > > > Not directly PHP related, but I'm building a site in PHP at the > >moment, so > > > I've been doing a bit of research... > > > I've been on the net for years, coding and surfing and coding. And > >not > > > always in that order. ;) But only recently have I heard about web > > > beacons, > > > or single-pixel gifs. Seems every site with these beacons mentions > >them > > > in > > > their privacy policy. Shows you how much I pay to attention to them. > >I > > > was > > > just curious as to how they work. Is it just a matter of viewing > >server > > > reports to see how often that image has been accessed? > > > >I'm sure you could do a number of things with them. It could even be a > >PHP script that does some logging of it's own with sessions or cookies > >or whatever and then outputs the data for a single pixel gif. So you > >could have a plain HTML page that'll still access a .php page when it's > >loaded to track what users are doing. > > > >---John W. Holmes... > > > >PHP Architect - A monthly magazine for PHP Professionals. Get your copy > >today. http://www.phparch.com/ > > > > > > > _________________________________________________________________ > Add photos to your e-mail with MSN 8. Get 2 months FREE*. > http://join.msn.com/?page=features/featuredemail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php