Images

From: Date: Thu, 20 Dec 2001 19:08:28 +0000
Subject: Images
Groups: php.general 
Request: Send a blank email to php-general+get-78346@lists.php.net to get a copy of this message
Hi, I am trying to do something like this: <img src="image.php?image=1"> The code is like this: <script language="php"> $szPicture = "myimage.gif"; $url = "http://www.mysite.com/" . $szPicture; header("Content-type: image/gif"); header("Content-Length: " . strlen($url)); echo $url; </script> But nothing happens, I just get the broken image. My logs show nothing about a script failure or about a file not being found. I tried without the header("Content-Length: " . strlen($url)); but no diff. Thanks for any help.

« previous php.general (#78346) next »