When attempting to modify the upload_max_filesize setting using the ini_set() function, a user encountered an unexpected result. Despite setting the value to '10M' in both their script and the php.ini configuration file, the ini_get('upload_max_filesize') call returned '2M'.
Upon restarting the Apache server, the issue resolved itself. However, to fully understand why the ini_set() call was not having the desired effect, it's important to note the following points:
The above is the detailed content of Why Doesn't `ini_set()` Change `upload_max_filesize`?. For more information, please follow other related articles on the PHP Chinese website!