当我上传图片(4480px X 5808px)大小757KB时出现错误
return new Vector3(float.Parse(pos[0]), float.Parse(pos[2]), float.Parse(pos[4]));
当我尝试上传图片(4480px X 4368px)大小4.2MB成功上传
我还将 upload_max_filesize = 64M 设置为php.ini
PHP代码:
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 8192 bytes) in /home/dygnmuu4/public_html/cuisinecanvas.com/application/controllers/Food_blogger.php on line 128
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 32768 bytes) in /home/dygnmuu4/public_html/cuisinecanvas.com/system/core/Exceptions.php on line 1
答案 0 :(得分:0)
尝试
ini_set('memory_limit','-1');
将您的view_code放在顶部,或者
如果在这种情况下,您使用ubuntu和php5.6,请更改文件php.ini /etc/php/5.6/apache2/php.ini,然后找到文本memory_limit将值更改为-1,
希望这会有所帮助
答案 1 :(得分:0)
在服务器上,还要在cpannel-> selectphpversion-> switchtophpoptions-> upload_max_filesize中增加upload_max_filesize
。