note 34988 added to function.fread

From: Date: Thu, 14 Aug 2003 07:55:43 +0000
Subject: note 34988 added to function.fread
Groups: php.notes 
Request: Send a blank email to php-notes+get-54132@lists.php.net to get a copy of this message
I had a working download-function using fread(). "Suddendy" it stopped working for large files, it caused a very huge memory and CPU usage, and the client did not get the file. It took me hours to find out that i added a "ini_set('session.use_trans_sid', 1);" meanwhile, and so PHP buffered ALL the output (in my case ~MB...) and parsed it again before sending it to the client to add the SID... So be aware while using transparent SID... Matschek ---- Manual Page -- http://www.php.net/manual/en/function.fread.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34988 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34988&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34988&report=yes

« previous php.notes (#54132) next »