PHPDisk网盘官方论坛

 找回密码
 立即注册
网盘分享动态:
E-Core企业网盘系统v4.0试用版(2024年)官方论坛版主招募啦~期待您的加入PHPDisk 7.0 V-Core系列发布[下载]
招聘团队,开发phpdisk项目【有兴趣即可加入】phpdisk新版本 Windows客户端软件详尽~PHPDisk 模板制作教程
PHPDISK网盘专用探针 V2.1 PHPDisk插件开发教程PHPDisk交流Q群,加入->
查看: 2042|回复: 5

关于文件上传大小的设置!

[复制链接]

已分享文件:0个

网盘今日赚:积分

发表于 2010-11-3 07:21:28 | 显示全部楼层 |阅读模式
一般来说,如果您是国内的虚拟主机,是无法设置php.ini的,你只能咨询空间提供商,叫他们帮你设置大一点(一般他们不会帮忙设置);如果是国外的虚拟主机,可以将 php.ini 在 cgi-bin/ 目录下设置,调整即可。


我是国外主机,我也问过,我可以自行创建 php.ini, 请问要怎么做?帮助里的这段没看懂...

PS:我的主机是无限空间的....不利用起来太可惜了....

已分享文件:20个

网盘今日赚:积分

发表于 2010-11-3 10:58:16 | 显示全部楼层
国外的主机,每一个主机商有不同的设置。你只能咨询你的主机商,要怎么配置

已分享文件:0个

网盘今日赚:积分

 楼主| 发表于 2010-11-3 14:18:42 | 显示全部楼层
我问了主机商,回了一个这样的:

You can also change the settings in php.ini file. Please login to cPanel >> File Manager >> Under /public_html folder, create a new file with the name php.ini .In the php.ini file, locate the line which you would like to implement and click save. You can also locate the php.ini file in any of the the folder under public_html which you would to have.

我在根目录下创建php.ini,可是打开是空白文件咯,我要如何找到post_max_size)  (upload_max_filesize) 所在位置咯?

楼主能不能给我个php.ini范例看看?

已分享文件:20个

网盘今日赚:积分

发表于 2010-11-3 16:10:24 | 显示全部楼层
看附件,

php.zip

1.76 KB, 下载次数: 868

已分享文件:0个

网盘今日赚:积分

 楼主| 发表于 2010-11-4 13:02:08 | 显示全部楼层
主机商给了我一个新的回复:

You can apply custom PHP settings on a per-folder basis using a local php.ini file.

For example, you need post_max_size and upload_max_filesize set to 200M in a directory. For this purpose you should log in your cPanel and go to the File Manager. There navigate to the directory where you'd like this setting applied. In this directory create a file php.ini containing:

post_max_size = 200M
upload_max_filesize = 200M

意思是我可以对各个文件夹进行设置,那PHPDISK中,用户上传的文件在哪个文件夹?

已分享文件:20个

网盘今日赚:积分

发表于 2010-11-4 13:29:16 | 显示全部楼层
国外的主机,一般有一个cgi-bin/ 目录,你直接在这个目录创建php.ini 就可以了。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /1 下一条

小黑屋|Archiver|手机版|PHPDisk官方论坛 ( 粤ICP备10073657号 )

GMT+8, 2024-4-29 07:20 , Processed in 0.059449 second(s), 31 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表