note 5430 modified in function.imagegif by danbrown
| From: | danbrown@php.net | Date: | Tue, 09 Jun 2009 13:18:14 +0000 |
| Subject: | note 5430 modified in function.imagegif by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-156605@lists.php.net to get a copy of this message | ||
This is how you load and display an image file:
<?php
Header("Content-Type: image/gif");
$fn=fopen("./imagefile.gif","r");
fpassthru($fn);
?>
Note that there are no new-lines in the content type header.
--was--
This is how you load and display an image file:
<?
Header("Content-Type: image/gif");
$fn=fopen("./imagefile.gif","r");
fpassthru($fn);
?>
Note that there are no new-lines in the content type header.
http://php.net/manual/en/function.imagegif.php