note 32795 rejected from function.header by spic

From: Date: Sat, 07 Jun 2003 05:53:08 +0000
Subject: note 32795 rejected from function.header by spic
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-49928@lists.php.net to get a copy of this message
Note Submitter: ---- HI, i have a problem, when i try to download a file from my server (IIS) this file it's save on my hard drive, but the file is modified , it' no longer the same file that i used to have, the code that i have know is <? ob_start(); i must have this line to dont have any error after ?> if i delete this line after i have the error that says that i can not modify the headers.... <? $filename0 = $_GET["file2dl"]; // single filename Header("Content-type: application/force-download"); header("Content-type: application/octet-stream"); header ("Cache-control: private"); $fp = fopen('../'.$filename0, 'r'); fpassthru($fp); ?> what can i do? thanks

« previous php.notes (#49928) next »