Re: Server change affecting ability to send downloaded files???

From: Date: Sat, 08 Aug 2009 15:16:26 +0000
Subject: Re: Server change affecting ability to send downloaded files???
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-296481@lists.php.net to get a copy of this message
http://us2.php.net/readfile Returns the number of bytes read from the file. If an error occurs, FALSE is > returned and unless the function was called as @readfile(), an error message > is printed. Ah. So readfile() was generating some error and outputting before the Content-Type was sent to the browser. It might not hurt to move to a fread($fh, 8096) + print() to prevent the bug in the future. Jerry Wilborn jerrywilborn@gmail.com On Sat, Aug 8, 2009 at 9:00 AM, Brian Dunning <brian@briandunning.com>wrote: > A Rackspace guy determined that php.ini was set to use 16MB of memory, and > he upped it to 32MB, and now everything works. Some of my downloads are as > large as 41MB so I asked him to up it to 48MB. > > Maybe they upgraded the PHP version or something and wiped this setting. > The 41MB files had always been downloading to customers before, without any > problem -- is there some way that could have worked with php.ini set to > 16MB, or does this mean for sure that the setting was changed somehow? > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#296481) next »