配置php ini文件来上传文件 [英] Config php ini file for upload files

查看:145
本文介绍了配置php ini文件来上传文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 

php_value upload_max_filesize 40M
php_value post_max_size 40M

我有一个img,大小为1.6 MB。


致命错误:允许内存大小为54525952个字节(已尝试分配3600字节)....


有谁知道如何解决这个问题?
<如果你不能访问服务器上的 php.ini ,那么写在 .htaccess $ b $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $

$ php $ value $ 32











I have a page for upload files, In .htaccess file I have this:

php_value upload_max_filesize 40M
php_value post_max_size 40M

I have an img, with size 1.6 MB. When I am trying to upload this image, I obtain the error below.

Fatal error: Allowed memory size of 54525952 bytes exhausted (tried to allocate 3600 bytes) in....

Does anyone know how to solve this problem?

解决方案

if you can cant access php.ini on server then write below in your .htaccess file

php_value upload_max_filesize 10M
php_value post_max_size 20M
php_value memory_limit 32M

这篇关于配置php ini文件来上传文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆