| 
	
 | 
 Posted by Todd Cary on 02/09/05 01:08 
Richard - 
 
It turned out that the following was missing from Apache's httpd.conf file: 
 
<Files *.php> 
SetOutputFilter PHP 
SetInputFilter PHP 
LimitRequestBody 5000000 
</Files> 
 
Not sure what that does or where I should have read about it, but I did  
find that in an email I got with Google. 
 
Todd 
 
Richard Lynch wrote: 
>  
>  
>  
> Todd Cary wrote: 
>  
>>I am using php 4 and Apache 1.3 on a RH 9 box. 
>> 
>>upload_max_filesize is set to 5M 
>> 
>>post_max_size is set to 8M 
>> 
>>MAX_FILE_SIZE in the HTML upload page is set to 5000000 
>> 
>>I get the error "The document contains no data" with any file over 500 KB. 
>> 
>>What is creating the error? 
>  
>  
> Are you sure the HTML one isn't 500000?... :-) 
>  
> Also double-check your settings in <?php phpinfo();?> to be sure that the 
> php.ini you changed is the one PHP reads... 
>  
> Actually, though, you shouldn't get "The document contains no data" in any 
> of these, unless your BROWSER is getting tired of waiting for a response 
> from the server. 
>  
> The PHP script should still be invoked, and it should be able to detect 
> the over-sized file uploaded, and it should print some kind of error 
> message about that. 
>  
> It's quite possible your script does absolutely NOTHING when the file is 
> over-sized, and then it prints nothing out, and so the document is 
> completely empty, and you get that message. 
>  
> Review the PHP you wrote and see what you did for an over-sized check on 
> the file uploaded, or any other kind of upload error.  Are you printing 
> SOMETHING out in that case? 
>
 
[Back to original message] 
 |