Hello All -
I'm writing a script to upload a bunch of images. The number of images to be uploaded can be defined by the user. I've discovered that, if the total number of images (or total size of all images to be uploaded) exceeds the php ini setting, than the .ini settings must be edited to match or exceed the total number and/or total size of images uploaded.
What I'd like to do is, for example:
$maxSiz = ini_get('upload_max_filesize'); then...
Calculate the KB of all images to be uploaded.
If the total KB of all images to be uploaded exceeds upload_max_filesize, then I'd...
ini_set('upload_max_filesize', $newFilesizeValue); then...
Upload the files, then...
reset .ini to the original values.
So, after all of that the core questions is:
1. can these ini settings be altered on the fly?
2. would apache need to be restarted for the changes to take effect?
3. If these specific ini settings CANNOT be changed on the fly or if apache WOULD need to be restarted, then is there a maximum upload value I should use?
Thanks to all in advance!