php - Error: Allowed memory size of 67108864 bytes exhausted -


when upload picture

  • file size: 375kb
  • width: 2000px
  • height: 3000px

i error

error fatal error: allowed memory size of 67108864 bytes exhausted (tried allocate 2157 bytes) in...

why happen, when 67108864 = 64mb?

i use shared server. .htaccess is:

<ifmodule mod_rewrite.c>     rewriteengine on     rewriterule    ^$ webroot/    [l]     rewriterule    (.*) webroot/$1 [l]   </ifmodule>  

where must write php_value memory_limit 128m?

it seems have 64m (67108864 / 1024 / 1024) allocated php.

if have access php.ini, increase max memory size.

you can in bootstrap php script.

ini_set('memory_limit', '128m'); 

or in .htaccess

php_value memory_limit 128m 

Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -