PHP is using MySQL to report this error.
AAAAAA byte size of memory exhaustion (when attempting to allocate bbbbb bytes)
If the value of BBBBB is larger than the AAAAA, it means that the memory is small, not enough, this time we need to modify the settings, the setting to write a bit larger:
The solution is now recorded in the following ways:
First, modify the php.ini (recommended):
Search the Memory_limit field in PHP.ini, and make changes, such as
Memory_limit = 128M
Second, add the following statement inside the program
In the. PHP code, add the following configuration statement:
Ini_set ("Memory_limit", "128M");
In fact, there is a situation where the value of BBBBB is much smaller than the value of AAAAA:
This time is not a memory problem, is the problem of the program, may not be in your program to open MySQL-related content, attention to multi-check and database connection associated with the authenticity of the code
The above describes the allowed memory size of aaaaa bytes exhausted tried to allocate bbbbb, including aspects of the content, I hope to be interested in PHP tutorial friends helpful.