Just for kicks, try this instead: if (!isset($newimage)) {...
jtjohnston wrote: > However it crashes if $newimage=1 > My image doesn't display. > <?php > > if(!$newimage) > { > header("Content-type: text/html"); > echo "hi<br>"; > echo "rendu: $rendu<br>"; > }else{ > > header("Content-type: image/png"); > $image = imagecreate(500, 350); > //etc... > } > ?> > > -- _______ ___ _ ____ _____ Chris Hobbs / ____\ \ / / | | |/ ___\| __ \ Head Geek | (___ \ \ / /| | | | (___ | | | | WebMaster \___ \ \ \/ / | | | |\___ \| | | | PostMaster ____) | \ / | |__| |____) | |__| | \____/ \/ \____/ \____/|_____/ http://www.silvervalley.k12.ca.us [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]