tags:

views:

1518

answers:

1

Like many variables in PHP using ini_set() on a page doesn't actually work.

I've recently upgraded my PHP version and found that my multiple image uploader is now capped. After 3 hours of frustration, I've found that my new PHP install has the new "max_file_uploads" parameter set to "20".

So only the first 7 images get uploaded (each is in three sizes, 7*3=21).

I can now change my php.ini value of "max_file_uploads" to 300, but I'd rather not do that side wide.

Is there any way to set that value just for a single file (upload.php)? Could a .htaccess file be used for this?

+2  A: 

Correction: max_file_uploads can NOT be changed outside php.ini. See PHP "Bug" #50684

Pekka