发新话题
打印

关于取消LP附件上传限制的官方答复(中英文)

关于取消LP附件上传限制的官方答复(中英文)

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 编辑 ]
本帖最近评分记录

TOP

在htaccess中添加:

suPHP_ConfigPath /home/Yourusername/public_html

其中Yourusername用cpanel用户名代替

在php.ini中添加:
upload_max_filesize = 5M
post_max_size = 5M

TOP

哈~和老大翻译的一样哈

TOP

那我今晚也要测试一下这个功能.

TOP

php.ini
这个文件在哪 我怎么找不到?

TOP

在public_html目录里。没有的话可以新建一个。如果不设置php.ini的内容则按照全局的默认设置

TOP

发新话题