Re: Including Picture in PHP

From: Date: Tue, 02 Apr 2002 13:45:45 +0000
Subject: Re: Including Picture in PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-91121@lists.php.net to get a copy of this message
if the output of graph.php is a URL, your code should work. <img src="/images/mypic.jpg"> if graph outputs the image itself, you have to do it a bit different: in the html it should look like: <img src="graph.php?..."> and graph.php should do something like: header("Content-Type: image/gif"); echo $imagecontent; Hope that helps Michael "Moschitz Martin" <Martin.Moschitz@arcs.ac.at> schrieb im Newsbeitrag news:C12183EFFDAED311A96D08000628568288D17E@itt0ex02.arcs.ac.at... > What is wrong with the following statement? The Picture which is generated > in graf.php is not displayed. > > echo "<img src="; > include(" graf.php "); > echo ">"; > > thanxs > martin

« previous php.general (#91121) next »