-Original Message-
From: Brian Dunning [mailto:br...@briandunning.com]
Sent: 08 August 2009 01:04
To: PHP General List
Subject: Re: [PHP] Server change affecting ability to send
downloaded files???
Very interesting. Excellent debugging advice. It's giving me a 500
error
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
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
Very interesting. Excellent debugging advice. It's giving me a 500
error, probably why the Rackspace techs told me to check my code:
HTTP/1.0 500 Internal Server Error
Date: Sat, 08 Aug 2009 00:01:10 GMT
Server: Apache/2.0.52 (Red Hat)
X-Powered-By: PHP/5.2.10
Content-Disposition: attachment;
Correct, the files on the server have not changed either, and have
been working fine for a long time. No funny characters.
On Aug 7, 2009, at 4:59 PM, Adam Randall wrote:
Sorry for replying to myself, but the files themselves only contain
US-ASCII characters, and no quotes, correct? Having
Very interesting. Excellent debugging advice. It's giving me a 500
error, probably why the Rackspace techs told me to check my code:
HTTP/1.0 500 Internal Server Error
Did you get that 500 while running curl from a machine outside of Rackspace's
network?
If so, I'd be interested to see what
Change to cron -i to see what other information, if any, is also being
passed back. You might get some errors, or some such. Since you are
getting empty files my gut tells me you aren't getting anything. Since
you are actually getting a PHP 500 error, that lends me to believe
that it's not some
The 500 is the result of the missing content-type in the real header. Once
you get a blank line in there, it thinks thats the content. The error log
will likely say 'premature end of script headers'... Good mystery on why
it's got the blank line though.
Jerry Wilborn
jerrywilb...@gmail.com
On
8 matches
Mail list logo