Re: Showing an image outside of the web folder

From: Date: Fri, 05 May 2006 16:15:22 +0000
Subject: Re: Showing an image outside of the web folder
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-235652@lists.php.net to get a copy of this message
On 5/5/06, James Nunnerley <james@webit.co.uk> wrote:
Doing a "readfile ($file_location)" outputs the binary... can someone point me in the direction of being able to translate that binary into a viewable image file?
Drop the appropriate content-type header: header('Content-type: image/png'); readfile('/home/foo/bar.png'); Rabin

« previous php.general (#235652) next »