Re: [PHP] PHP 4.1.2 ignores ini-set on max_upload_filesize

2002-05-27 Thread Rasmus Lerdorf

You cannot change the upload limit in your script because the file upload
happens before your script is executed.  You need to set it in your
php.ini, httpd.conf or .htaccess

-Rasmus

On Mon, 27 May 2002, DevilKin wrote:

 Hello,

 As stated in the topic: PHP 4.1.2 balantly ignores max_upload_filesize
 paramter. I've been trying - without solution - to get php 4.1.2 (compiled as
 module for apache 1.3.xx) to accept a file upload (via post) of more than 2
 mb. Files = 2mb work great, but when I go above this php returns
 is_uploaded_file() with false, even tho the file is correct. It also doesn't
 seem to be saved correctly.

 I am not using ANY ini-file, but I've been able to reproduce this behaviour
 with an ini file (on a different system, same php/apache versions)

 Is there something I'm missing here?

 Thanks!

 DK

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PHP 4.1.2 ignores ini-set on max_upload_filesize

2002-05-27 Thread DevilKin

On Monday 27 May 2002 22:59, Rasmus Lerdorf wrote:
 You cannot change the upload limit in your script because the file upload
 happens before your script is executed.  You need to set it in your
 php.ini, httpd.conf or .htaccess

Aha. How do i set this from .htaccess anyway?
And this might be worthy of notification in the manual that ppl like me don't 
end up searching for hours to find something trivial like this...

Thanks!

DK

-- 
Dentist, n.:
A Prestidigitator who, putting metal in one's mouth, pulls
coins out of one's pockets.
-- Ambrose Bierce, The Devil's Dictionary


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PHP 4.1.2 ignores ini-set on max_upload_filesize

2002-05-27 Thread DevilKin

On Tuesday 28 May 2002 07:33, DevilKin wrote:
 On Monday 27 May 2002 22:59, Rasmus Lerdorf wrote:
  You cannot change the upload limit in your script because the file upload
  happens before your script is executed.  You need to set it in your
  php.ini, httpd.conf or .htaccess

 Aha. How do i set this from .htaccess anyway?
 And this might be worthy of notification in the manual that ppl like me
 don't end up searching for hours to find something trivial like this...


Nevermind, found it already :oP Thanks for the hint tho!

http://www.php.net/manual/en/configuration.php

This explains it all :-) And it works, too :oPP


DK

-- 
You will lose your present job and have to become a door to door
mayonnaise salesman.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php