note 104920 added to function.readfile

From: Date: Fri, 15 Jul 2011 14:56:54 +0000
Subject: note 104920 added to function.readfile
Groups: php.notes 
Request: Send a blank email to php-notes+get-181573@lists.php.net to get a copy of this message
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? ---- Server IP: 187.73.33.10 Probable Submitter: 189.115.161.166 ---- Manual Page -- http://www.php.net/manual/en/function.readfile.php Edit -- https://master.php.net/note/edit/104920 Del: integrated -- https://master.php.net/note/delete/104920/integrated Del: useless -- https://master.php.net/note/delete/104920/useless Del: bad code -- https://master.php.net/note/delete/104920/bad+code Del: spam -- https://master.php.net/note/delete/104920/spam Del: non-english -- https://master.php.net/note/delete/104920/non-english Del: in docs -- https://master.php.net/note/delete/104920/in+docs Del: other reasons-- https://master.php.net/note/delete/104920 Reject -- https://master.php.net/note/reject/104920 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#181573) next »