- 最后登录
- 2008-6-12
- 在线时间
- 23 小时
- 侦探币
- 0
- 注册时间
- 2008-1-20
- 阅读权限
- 10
- 帖子
- 47
- 精华
- 0
- 积分
- 47
- UID
- 20034

- 金币
- 0
- 银币
- 269
- 侦探币
- 0
- 威望
- 10
- 阅读权限
- 10
- 帖子
- 47
- 精华
- 0
- 积分
- 47
- UID
- 20034
|
发表于 2008-1-23 03:54:12 PM
|显示全部楼层
Hello
You can change the upload file size by doing the following:
Put the following in a regular text file named php.ini in the same folder as
the upload script:
upload_max_filesize = 5M
post_max_size = 5M
Replace the 5 with whatever size you want. If you are letting other people
upload, a size cap protects your storage space from abuse/overuse.
If you want all your site folders to have the same setting, put the php.ini
file in public_html folder.
You will then need to add this line to a .htaccess file:
(Please replace "yourusername" with your cpanel user name an add to the end of the comand line the folder(s) to the location of the php.ini file - Also there is a space between path and /home)
suPHP_ConfigPath /home/Yourusername/public_html
--
If you have any more questions, please do not hesitate to contact the Lunarpages Help Desk again.
--
Best Regards,
Dinsan Francis
support@lunarpages.com
Telephone: 1-714-521-8150
Fax: 1-714-521-8195
我翻译的其中一个方法:
全局设置,在public_html 文件夹下
在php.ini文件添加
upload_max_filesize = 5M
post_max_size = 5M
可以把5换成其他数值,
然后在 .htaccess 中,添加suPHP_ConfigPath /home/Yourusername/public_html
其中yourusername是你的控制面板的用户名,完成以上2步后修改就完成了!
经我测试,完全有效!!
[ 本帖最后由 tomalan68888 于 2008-1-23 04:02 PM 编辑 ] |
-
总评分: 威望 + 5
查看全部评分
|