克服upload_max_filesize [英] Overcoming upload_max_filesize

查看:76
本文介绍了克服upload_max_filesize的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


有没有办法让我克服php.ini配置

upload_max_filesize?我不能使用ini_set(),因为upload_max_filesize只能在httpd.conf或php.ini中设置
。还有其他选择吗?


我有一个我写的图片库脚本需要一个非常大的

图像,并将其调整到合理的大小网络的大小。这使我很容易从我的相机中获取非常高分辨率的图像,并且只需将它们发送到网上而不会在单独的程序中弄乱它们。 br />
不幸的是,我很少有大于2兆的图像,

这是默认的upload_max_filesize限制。


任何想法?或者我是不是要求我的webhost更改

upload_max_filesize?


此致,

-Josh

Hi All,

Is there any way for me to overcome the php.ini configuration
upload_max_filesize? I cannot use ini_set() since upload_max_filesize can
only be set in httpd.conf or php.ini. Are there any other options?

I have an image gallery script that I wrote that will take a very large
image, and resize it down to a reasonable size for the web. This makes it
easy for me to grab very high resolution images from my camera, and just
shoot them off to the web without messing with them in a separate program.
Unfortunately, I not infrequently have images that are bigger than 2 megs,
which is the default upload_max_filesize limit.

Any ideas? Or am I stuck asking my webhost to change the
upload_max_filesize?

Sincerely,
-Josh

推荐答案

" Joshua Beall" < JB **** @ donotspam.remove.me.heraldic.us>在消息中写道

新闻:21 ***************** @nwrddc03.gnilink.net ...
"Joshua Beall" <jb****@donotspam.remove.me.heraldic.us> wrote in message
news:21*****************@nwrddc03.gnilink.net...
大家好,

有没有办法让我克服php.ini配置
upload_max_filesize?我不能使用ini_set()因为upload_max_filesize只能在httpd.conf或php.ini中设置。还有其他选择吗?

我有一个我写的图像库脚本,它将拍摄一张非常大的图像,并将其调整到适合网络的大小。这使我很容易从我的相机中获取非常高分辨率的图像,并且只需将它们拍摄到网上而不会在单独的程序中弄乱它们。
不幸的是,我并不经常图像大于2兆,
这是默认的upload_max_filesize限制。

任何想法?或者我是不是要求我的webhost更改
upload_max_filesize?

真诚的,
-Josh
Hi All,

Is there any way for me to overcome the php.ini configuration
upload_max_filesize? I cannot use ini_set() since upload_max_filesize can
only be set in httpd.conf or php.ini. Are there any other options?

I have an image gallery script that I wrote that will take a very large
image, and resize it down to a reasonable size for the web. This makes it
easy for me to grab very high resolution images from my camera, and just
shoot them off to the web without messing with them in a separate program.
Unfortunately, I not infrequently have images that are bigger than 2 megs,
which is the default upload_max_filesize limit.

Any ideas? Or am I stuck asking my webhost to change the
upload_max_filesize?

Sincerely,
-Josh




不,通常没有办法克服这个问题。

你应该问你的主人他们是否会更改php.ini.


问候

Richard Grove

http://shopbuilder.org - 电子商务系统

成为Shop Builder的转售商:
http://www.affiliatewindow.com/affil...ls.php?mid=611
http://www.affiliatewindow.com/a.pl?590



Nope, there is not usually a way to overcome this.
You should ask your host if they will change the php.ini.

Regards
Richard Grove

http://shopbuilder.org - ecommerce systems
Become a Shop Builder re-seller:
http://www.affiliatewindow.com/affil...ls.php?mid=611
http://www.affiliatewindow.com/a.pl?590




" Joshua Beall" < JB **** @ donotspam.remove.me.heraldic.us> schreef in bericht

news:21 ***************** @nwrddc03.gnilink.net ...

"Joshua Beall" <jb****@donotspam.remove.me.heraldic.us> schreef in bericht
news:21*****************@nwrddc03.gnilink.net...

任何想法?或者我是不是要求我的webhost更改
upload_max_filesize?

Any ideas? Or am I stuck asking my webhost to change the
upload_max_filesize?




您可以尝试将.htaccess文件放入网站的根目录中

以下条目:


< IfModule mod_php4.c>

php_value upload_max_filesize 8M

< ; / ifModule>


除了php_value之外,你还可以使用php_flag来切换指令,只有

可以打开或关闭。

JW



You could try to put an .htaccess file in your website''s root with the
following entry:

<IfModule mod_php4.c>
php_value upload_max_filesize 8M
</IfModule>

Besides php_value, you can also use php_flag to toggle directives which only
can be switched on or off.
JW


我认为你不能没有访问根配置文件:它是带宽保护。

安装本地服务器,或单独使用php以便能够使用您的脚本。
I think you can''t without accessing the root configuration files : it''s a bandwidth protection.
Install a local server, or use php alone to be able to use your script.


这篇关于克服upload_max_filesize的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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