RE: [PHP] Cookies In Images...
| From: | Matthew Walker | Date: | Wed, 02 Jan 2002 21:31:54 +0000 |
| Subject: | RE: [PHP] Cookies In Images... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-79259@lists.php.net to get a copy of this message | ||
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:bvr@xs4all.nl]
Sent: Wednesday, January 02, 2002 2:28 PM
To: php-general@lists.php.net
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: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net
---
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