fread() memory problems

From: Date: Sun, 15 Nov 2009 19:00:28 +0000
Subject: fread() memory problems
Groups: php.general 
Request: Send a blank email to php-general+get-299844@lists.php.net to get a copy of this message
I was just wondering why fread() seems to use so much memory when reading in a file. My php.ini has a script memory limit of 32MB, yet PHP hits its memory limit on a 19MB mbox file that I'm reading in. How is it possible that this function can use 150% of a files' size in memory?! Thanks, Ash http://www.ashleysheridan.co.uk

« previous php.general (#299844) next »