上传filesize的问题 [英] Upload problem with filesize

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

问题描述

在winxp pro sp2上使用php5,apache2。

我有一个上传文件的脚本,将文件复制到服务器上的文件夹并将文件信息写入a mysql数据库。我知道它适用于小文件(例如200KB)。但是,如果是4MB的文件,它不会复制任何内容,也不会将任何文件信息写入mysql。这让我相信这部分(在处理脚本上):

Using php5, apache2, on winxp pro sp2.

I have a script which uploads a file, copies the file to a folder on the server and writes the file information to a mysql database. I know it works as it does it fine for smallish files (eg 200KB). But a file of, say, 4MB it doesn''t copy anything and it doesn''t write any file info to mysql. Which leads me to believe that this part (on the processing script):

展开 | 选择 | Wrap | 行号

推荐答案

它可以是php.ini中的其中一个

文件上传:

上传文件的最大大小由以下参数决定:

file_uploads必须是1(默认)

memory_limit必须略大于post_max_size和upload_max_filesize

post_max_size必须足够大

upload_max_filesize必须足够大

http://www.odi.ch/prog /design/php/guide.php
It could be one of these in php.ini
File uploads:
The maximum size of an uploaded file is determined by the following parameters:
file_uploads must be 1 (default)
memory_limit must be slightly larger than the post_max_size and upload_max_filesize
post_max_size must be large enough
upload_max_filesize must be large enough

http://www.odi.ch/prog/design/php/guide.php


Heya,Beary。


当你
Heya, Beary.

What do you get when you
展开 | 选择 | < span class =codeLinkonclick =WordWrap(this);> Wrap | 行号


确定。首先,我道歉,我觉得自己像个白痴...


我检查了upload_max_filesize,那只是2MB。这当然是个问题。现在创建的问题是我无法改变这一点,并且工作中的IT经理在一年中的其他时间都处于关闭状态,没有其他人可以改变这一点。我打赌这是一个非常简单的改变,但我认为现在我受到了阻碍。有没有什么方法可以通过我的浏览器(或其他方式)调出php.ini文件,如果我知道它的路径,这是/etc/php5/apache2/php.ini


很抱歉发布一个我最初应该自己解决的问题。也许这个会稍微困难一点?
OK. First, I apologise, I feel like an idiot...

I checked upload_max_filesize and that is only 2MB. This is certainly the problem. The now-created problem is that I have no access to change this, and the IT manager at work is off for the rest of the year, and no-one else can change this. I bet it''s a really simple change, but I think for now I''m stymied. Is there any way I can bring up the php.ini file through my browser (or some other way) if I know the path to it, which is /etc/php5/apache2/php.ini

Sorry for posting a question I should have initially worked out myself. Maybe this one will be slightly harder?


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

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