Re: rules for headers?

From: Date: Sat, 10 Nov 2001 23:00:40 +0000
Subject: Re: rules for headers?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-74129@lists.php.net to get a copy of this message
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 chobbs@silvervalley.k12.ca.us

« previous php.general (#74129) next »