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? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php