My hosting company has a default 2M limit on file uploads.
I tried to override this using .htaccess containing line
php_value upload_max_file size 8388608
But placing this in the upload script folder causes apache errors when
serving scripts in that folder. The error states something like "php_value
not recognized as valid"
In the end I created a php.ini file containing line
upload_max_file size = 8M
which I placed in the folder containing the upload script.
This works ok but why ? I cannot find any reference to using this approach
to override global php.ini directives ?
I tried to override this using .htaccess containing line
php_value upload_max_file size 8388608
But placing this in the upload script folder causes apache errors when
serving scripts in that folder. The error states something like "php_value
not recognized as valid"
In the end I created a php.ini file containing line
upload_max_file size = 8M
which I placed in the folder containing the upload script.
This works ok but why ? I cannot find any reference to using this approach
to override global php.ini directives ?
Comment