There are a variety of solutions, the following I based on the different permissions of the webmaster to introduce
Have server Admin permissions to modify php.ini files
Can be directly in the php.ini memory_limit = 8M; Increase to 12M or greater. (Note: M is not MB in the back)
No Server Admin Permissions
1.php directly modify memory but you need PHP to support the Ini_set function, this method will not work if the function is prohibited in php.ini.
Ini_set (' Memory_limit ', ' 12M ');//can certainly be set to a larger value
2.htaccess Way, this general space host is supported
In the root directory, create the. htaccess file and add the following:
<filesmatch ". (php|html?) $ ">
Php_value Memory_limit 20000000
</FilesMatch>
Note: Generally speaking, 8M is the standard, but sometimes 8M is not enough.
Friendly tip: Fatal error:allowed memory size of 8388608 bytes exhausted. Indicates that the configured Memory_limit value is 8M. The solution is also solved by the method described above. Memory_limit value to 1.1 points plus debugging success