Re: Displaying images with php?

From: Date: Wed, 05 Jun 2002 20:47:52 +0000
Subject: Re: Displaying images with php?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-100792@lists.php.net to get a copy of this message
> What is the best way to display images in the browser with php? If i > for instance have the pictures in ..\pictures\ Youre asking the wrong question. PHP doesnt display anything in the browser... the browser does that job. What you can do is one of the following: 1. Output content headers and fpassthru the file (see fpassthru in the manual for more details)2. Output the HTML with a <IMG /> tag with the SRC attribute pointing to the image as usual. Others on this list will be able to provide good tutorial web pages which would do the job explaining PHP's role in displaying images in the web browser much better than I can. -- Dan Hardiker [dhardiker@staff.firstcreative.net] ADAM Software & Systems Engineer First Creative Ltd

« previous php.general (#100792) next »