note 5947 modified in ImageGif by ronabop

From: Date: Wed, 04 Oct 2000 15:06:25 +0000
Subject: note 5947 modified in ImageGif by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-6040@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/ http://www.php.net/manual/function.imagegif.php

« previous php.notes (#6040) next »