I have one PHP script on one site that requires me to set the maximum download size. I would rather not do it globally.
According to the PHP docs, I cannot set values for some variable, for example post_max_size, max_file_uploadsor upload_max_filesizeusing ini_set. I have seen a number of solutions running PHP in a UNIX box or on Windows with Apache, but none of them are clear to me using IIS.
I understand that I have a way to create my own php.ini file to override a specific php.ini value.
Ideally, I would like to have a php.ini file in a folder with this script that looks something like this:
[PHP]
post_max_size = 200M
max_file_uploads = 5
upload_max_filesize = 200M
How can I do this without setting values globally on my server?
source
share