5
当我上载图片错误:的67108864个字节允许内存大小耗尽
- 文件大小:375KB
- 宽度:2000像素
- 身高:3000px
我得到一个错误
ERROR Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 2157 bytes) in...
为什么会发生这种情况,当67108864 = 6 4MB?
我使用共享服务器。我的.htaccess是:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ webroot/ [L]
RewriteRule (.*) webroot/$1 [L]
</IfModule>
我这里必须写php_value memory_limit 128M
?
感谢您的帮助,但为什么pciture它只有375KB, – meotimdihia 2010-10-08 04:32:56
我可以上传1个2-3MB但只有画面发生错误 – meotimdihia 2010-10-08 04:33:27
@meotimdihia它是通常是问题的图像尺寸。你使用GD还是其他东西? – alex 2010-10-08 04:33:53