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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx


On Sat, Aug 8, 2009 at 9:00 AM, Brian Dunning <brian@xxxxxxxxxxxxxxxx>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
>
>

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux