Solutions:
1, modify php.ini Change memory_limit from 8M to 16M (or greater), and restart the apache service
2. Add ini_set(” memory_limit ”, “100M”) to the PHP file;
Note: for the normal use of other resources of the system, please do not set memory_limit too large, where -1 is unlimited
3. Modify the.htaccess document (provided the directory supports.htaccess) Add a new sentence to the document: php_value memory_limit 16M(or greater)