|
Is there a limit to the file size allowed for uploads by PHP scripts?
Posted by Admin on 01 January 2004 07:08 AM
|
|
|
Yes, in order to prevent too many server resources from being used by a file upload process, PHP scripts are subject to restrictions ruled by various factors, including upload file size limits, memory constraints, and CPU runtime. The restrictions for PHP when run as an Apache module are as follows:
Limits for the Community Servers Limits for the High Capacity Servers Default Limits for the Managed QuestServers (MQS) Note: When viewing phpinfo(),the Local Value reflects the server's actual configuration/settings and overrides the Master Value. The Master Value reflects a stock (default) PHP configuration. CGI is ruled in a similar way as PHP, but slightly more relaxed as PHP is buffering the input and can increase the overall footprint size of the Apache engine. With CGI, it can balloon up in size, but once the script finishing running its instance ends and the resources are reclaimed by Linux. This is why PHP must be kept on a short leash as it is a persistent engine that has a much longer lifespan. For CGI limits, click here.
| |
|
|
|



