Thanks. That's what I suspected, but I needed to make sure. Matthew Walker Ecommerce Project Manager Mountain Top Herbs
-----Original Message----- From: Bas van Rooijen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 2:28 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Cookies In Images... On Wed, 2 Jan 2002 14:11:39 -0700, Matthew Walker wrote: >Can anyone give me a pointer on where to go to find out how to send >cookies through images, preferably in PHP? To do this you will have to point the HREF in your IMG tag to a PHP script. >From that script you should do this: - Pass the correct content-type header (default for PHP is text/html) for example: <? header("Content-Type: image/jpeg"); ?> - Set the cookie as usual - Then send the contents of the image you would like to display, for example: <? readfile("test.jpg"); ?> bvr. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.310 / Virus Database: 171 - Release Date: 12/19/2001 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.310 / Virus Database: 171 - Release Date: 12/19/2001 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]