note 5947 deleted from function.imagegif by sander
| From: | sander@php.net | Date: | Sat, 04 May 2002 16:20:41 +0000 |
| Subject: | note 5947 deleted from function.imagegif by sander | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-30181@lists.php.net to get a copy of this message | ||
! figured out how to show ANY image, not just gif. Its basically david@hooshla.com's but even
smaller!!
<?php
// Use the following content type for the type of image you want to display
// .gif files - image/gif
// .jpg files - image/jpeg
header("Content-type: image/jpeg");
readfile("http://www.yoursite.com/image.jpg");
?>
It will probably go faster (only been using php for a couple weeks, so not sure) if you use a
relative path. You can do this by replacing the URL above with
($DOCUMENT_ROOT."/image.jpg") but the way above is how I tested it.
My website: http://www.vrillusions.com/