Re: Re: Changing PHP properties (Previously: Cannot upload a file greater

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

 



Todd Cary wrote:
Dan -

Keep in mind that the change I made was within Apache on my server - not in the php.ini file. The changes to the php.ini file are well documented and have been covered within messages on this NewNet.

However, s I stated, I am not sure why that change needs to be made...more reading for me I am sure!

Todd

Dan Trainor wrote:

Todd Cary wrote:

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?




While we're touching base on this subject, I know that you don't know much about this Todd, but does anyone else know where we can find more information about making modifications to PHP's operations inline in a configuration file such as this?


Thanks
-dant



Todd -

I understand that, yes, which is why I'm more interested in changing this on a per-virtualhost basis, specifically within Apache.

Thanks for keeping an eye out for me though.
-dant

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