Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199901

Re: [PHP3] using PHP to "pipe" image files From: Rasmus Lerdorf (rasmus <email protected>)
Date: 01/30/99

> The only problem is, the code above doesn't work, and I don't know why. I would be grateful for any advice.

<?php
        Header("Content-type: image/jpeg");
        ReadFile($name);
?>

works fine. Make sure you have absolutely no blank lines either before or
after the php tags, and make sure the file actually exists.

-Rasmus

--
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>