[Newman] Passing an image through a php file.
| From: | Mark Tehara | Date: | Thu, 19 Jun 2003 09:58:45 +0000 |
| Subject: | [Newman] Passing an image through a php file. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-152136@lists.php.net to get a copy of this message | ||
I would like to pass an image throught http://server/newman/ImageTEST/image.php
1. I need the headers (Assuming) <? header("Content-type: image/jpeg"); ?> would
make the computer think its a image file.
2. load the image using fopen ("d://crushme//images//1.jpg", "r");
<?php
header("Content-type: image/jpeg");
fopen ("d://crushme//images//1.jpg", "r");
?>
The image "http://server/newman/ImageTEST/image.php"
cannot be displayed, because it contains errors.
This returns this error (above)
Yes 1. Image is in the right location.
Yes 2. I'm stuck.
Any Suggestions would be very good.
/ Mark /