LunarPages取消附件上传限制

如何取消LunarPages附件上传的限制,就这个问题,我专门资讯了Lunarpages官方,以下是官方给予的回复信件:

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
上述信件的大概意思:
你好:
你按照下面的方法可以改变上传文件的大小:
在php.ini文件加入以下代码:
upload_max_filesize = 5M
post_max_size = 5M
你把5换成其它数字,假如你让其它人上传文件,你可以设置一个上传的上限,防止他们滥用存储空间,如果要所有的站点文件都有一样的设置,在public_html文件夹里修改php.ini文件,然后在.htaccess中添加suPHP_ConfigPath /home/Yourusername/public_html,其中yourusername是你的控制面板的用户名,如果你有任何问题,请联系我们。

你按照信件的说明,进行操作,完成以上2步后修改就完成了!

原创文章,转载请注明: 转载自LunarPages美国jsp主机

本文链接地址: LunarPages取消附件上传限制

文章的脚注信息由WordPress的wp-posturl插件自动生成