Sourcing Image file to <IMG> tag

From: Date: Tue, 10 Oct 2000 04:30:11 +0000
Subject: Sourcing Image file to <IMG> tag
Groups: php.general 
Request: Send a blank email to php-general+get-19289@lists.php.net to get a copy of this message
Several weeks ago I built a webpage that dynamically-resized jpeg files for display on a webpage. Conceptually, what I did was to include an <img> tag structured like the following: <img src=displayimage.php?theFile=TheFileToDisplay.jpg> displayimage.php was a file that contained code to build a scaled-size image of TheFileToDisplay.jpg. After building the image, it output it with: header("content-type: jpeg/image"); // I may be remembering the exact phrase wrong here imagejpeg($imageobject, ""); Unfortunately, something I did within the last few weeks has busted this algorithm so that nothing displays in the <img> tag. And I cannot for the life of me remember what the heck I did to break it!!! ARRRGGGHH!!! I hate solving problems twice. Anyway, does anyone have any suggestions on how to do this correctly? Thanx in advance for any help and/or advice. - Mark mark@REMOVETHIS STUFF@arcabama.com

« previous php.general (#19289) next »