Home > Backend Development > PHP Tutorial > PHP Tips: Fatal error: Allowed memory size of_PHP Tutorial

PHP Tips: Fatal error: Allowed memory size of_PHP Tutorial

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-13 10:08:28
Original
2325 people have browsed it

PHP prompt: Fatal error: Allowed memory size of

When an error like "Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 775920 bytes)" occurs, first of all First check whether there is an infinite loop in your php program.

Solutions (three types):

1. Modify php.ini (recommended)

Memory_limit = 12M

2. Add the following statements in the program

ini_set('memory_limit', '12M');

3. Create

in the root directory

.htaccess file, add the following content

 php_value memory_limit 12M

If it still doesn’t work, make it bigger.

The last thing to note is to restart the server.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/951490.htmlTechArticlePHP prompt: Fatal error: Allowed memory size of Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 775920 bytes), first check your...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template