Re: why did it stop working?

From: Date: Thu, 08 Mar 2007 10:36:03 +0000
Subject: Re: why did it stop working?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-250062@lists.php.net to get a copy of this message
Ross wrote:
Can someone explain to me why this used to work but then stopped header("Content-length: $size"); header("Content-type: $type"); header("Content-Disposition: attachment; filename=$name"); and this now works header("Content-length: ".$size); header("Content-type: ".$type); header('Content-Disposition: attachment; filename="'.$name.'"'); echo $content;
Have you enabled output buffering within PHP/your script? Cheers, Rich -- Zend Certified Engineer http://www.corephp.co.uk "Never trust a computer you can't throw out of a window"

« previous php.general (#250062) next »