Perttu Pulkkinen wrote:[color=blue]
> We have a service where users can send advertisements with image. It
> has worked okay, except according to our testing, images greater than
> 500 kb lead to "page cannot be found" - error.
>
> I have gathered some of the "important looking" php settings from
> servers phpinfo(). In all of these cases local value and master value
> are the same.
>
> magic_quotes_gpc = On
> max_execution_time = 30
> max_input_time = 60
> memory_limit = 8 M
> post_max_size = 8 M
> upload_max_filesize = 2 M
>
> I would like to ask your opinions: what is the reason?[/color]
If the file upload terminates instantly (without actually waiting to
transfer a part of the file), this is definately an Apache issue. See my
earlier posting from last April about the issue:
http://tinyurl.com/2w828
In short:
The answer is in /httpd/conf/httpd.conf
Look for something like:
# Cause the PHP interpreter handle files with a .php extension.
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
LimitRequestBody 524288
</Files>
And Increase the "LimitRequestBody" value, restart apache and enjoy.
--
Suni