note 104920 deleted from function.readfile by danbrown

From: Date: Fri, 15 Jul 2011 15:11:33 +0000
Subject: note 104920 deleted from function.readfile by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-181574@lists.php.net to get a copy of this message
Note Submitter: Bruno ---- Personal, generating an XML file through the php on the server is just that and I'm using my machine to generate. Chrome I could download more than anything done in IE, the code used to make the downlaod follows: //Set the headers that are sent to the browser header ('Content-Description: File Transfer'); header ('Content-Disposition: attachment; filename ="'.$ nome_xml .'"'); header ('Content-Type: application / octetstream'); header ('Content-Transfer-Encoding: binary'); header ('Content-Length:'. filesize ($ arquivoLocal)); header ('Cache-Control: must-revalidate, post-check = 0, pre-check = 0'); header ('Expires: 0'); //Send the file to the client readfile ($ arquivoLocal); Can someone help me?

« previous php.notes (#181574) next »