Re: Header and dfile download bug???

From: Date: Mon, 15 Sep 2003 14:10:57 +0000
Subject: Re: Header and dfile download bug???
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-162634@lists.php.net to get a copy of this message
* Thus wrote Tristan.Pretty@risk.sungard.com (Tristan.Pretty@risk.sungard.com): > header("Content-Disposition: attachment; filename=$file"); > header("Content-Length: " . filesize($path)); > header("Content-Type: " . filetype($path)); I didn't see this the first time, you should be calling: mime_content_type() And ensure that there is mime type defined in magic.mime for pdf. Curt -- "I used to think I was indecisive, but now I'm not so sure."

« previous php.general (#162634) next »