Re: Why can't I ini_set('upload_max_filesize')?
| From: | Richard Lynch | Date: | Tue, 17 Apr 2007 20:48:43 +0000 |
| Subject: | Re: Why can't I ini_set('upload_max_filesize')? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-253127@lists.php.net to get a copy of this message | ||
On Tue, April 17, 2007 3:43 pm, Sebe wrote:
> Brian Dunning wrote:
>> If I do this:
>>
>> ini_set('upload_max_filesize', 30720);
>> echo ini_get('upload_max_filesize');
>>
>> it returns 2M. Why is it not accepting the ini_set? The server is
>> Windows, PHP 5.2.
>
> probably because upload_max_filesize is PHP_INI_PERDIR not PHP_INI_ALL
>
> use:
> http://us.php.net/manual/en/configuration.changes.php
Not to mention that by the time your PHP script executes that line of
code, the file upload, if any, has already FINISHED...
Bit of a chicken and egg problem to make it PHP_INI_ALL, eh?
That's almost for sure why it's PHP_INI_PERDIR to start with.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?