in PHP by (10.3k points)
0 like 0 dislike
48 views

PHP Fatal error: Out of memory (allocated) (tried to allocate 4096 bytes) in /sites/site.loc/www/script.php on line, referer...

PHP error out of memory, allocated...
Out of memory (allocated) (tried to allocate bytes)...

How to decide PHP out of memory error?

1 Answer

0 like 0 dislike
by (10.3k points)

You need increase value memory_limit in php.ini file:

; Resource Limits
max_execution_time = 30 ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
memory_limit = 64M ; Maximum amount of memory a script may consume (8MB)

Your answer

Try to answer the question as detailed as possible.
Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.