php3-list | 199901
Date: 01/31/99
- Next message: Steve Marks: "[PHP3] Apache, mSQL + php3.0.6"
- Previous message: Rasmus Lerdorf: "Re: [PHP3] Mysql Slow on Win32"
- Next in thread: Colin Viebrock: "Re: [PHP3] Output image directly from PHP"
- Reply: Colin Viebrock: "Re: [PHP3] Output image directly from PHP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
How can I output an image directly from my PHP script without using gd
library? What if I want to output a jpeg file from PHP?
I tried to dynamically load an image in test.html which includes the
following line:
<img src="image.php3">
And my image.php3 script is like:
<?php
header("Content-type: image/gif");
echo ("/imgs/picture1.gif");
?>
But when I load test.html from browser, I got a broken image icon. Must
I use 'imagecreatefromgif' and 'imagegif' function? If that's the case,
then how to output a jpeg file?
Your input is greatly appreciated.
regards,
Pan Hong
-- PHP 3 Mailing List http://www.php.net/ To unsubscribe send an empty message to php3-unsubscribe <email protected> To subscribe to the digest list: php3-digest-subscribe <email protected> For help: php3-help <email protected> Archive: http://www.php.net/mailsearch.php3 List administrator: zeev-list-admin <email protected>
- Next message: Steve Marks: "[PHP3] Apache, mSQL + php3.0.6"
- Previous message: Rasmus Lerdorf: "Re: [PHP3] Mysql Slow on Win32"
- Next in thread: Colin Viebrock: "Re: [PHP3] Output image directly from PHP"
- Reply: Colin Viebrock: "Re: [PHP3] Output image directly from PHP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

