to feel8(准备早起的鸟) 怎么还一样,但第二条没有出现了。 <?php error_reporting(0); .........是加在这里吗。
Warning: Max file size exceeded - file [upfile] not saved in Unknown on line 0没有添家Max file size限制
to feel8(准备早起的鸟) 加了@error_reporting(0); 第一,二个问题都出来了。to jueban9818(绝版英俊) 在上传页表单内也加了MAX_FILE_SIZE的限制了。也不行
出现以下信息: Warning: Max file size of 2097152 bytes exceeded - file [upfile] not saved in Unknown on line 0当上传文件大于默认的2097152后,就出现了上述提示. 我想不管客户端上传多大的程序都要不出现提示信息,应怎样处理。
在PHP.ini文件里有设置上传文件最大值
to feel8(准备早起的鸟) 能不能提供一下你的上传程序与处理程序,还有你的PHP.ini文件里有设置上传文件最大值是多少。
怎么还一样,但第二条没有出现了。
<?php
error_reporting(0);
.........是加在这里吗。
加了@error_reporting(0);
第一,二个问题都出来了。to jueban9818(绝版英俊)
在上传页表单内也加了MAX_FILE_SIZE的限制了。也不行
Warning: Max file size of 2097152 bytes exceeded - file [upfile] not saved in Unknown on line 0当上传文件大于默认的2097152后,就出现了上述提示.
我想不管客户端上传多大的程序都要不出现提示信息,应怎样处理。
<?php
error_reporting(0);
echo $size;
$uploaddir = './';
$uploadfile = $uploaddir. $_FILES['userfile']['name'];
print "<pre>";
if(move_uploaded_file($_FILES['userfile']['tmp_name'],$uploaddir.$_FILES['userfile']['name'])) {
print "File is valid, and was successfully uploaded.";
} else {
print "Possible file upload attack! ";
}
?>
<form enctype="multipart/form-data" action="" method="POST">
<input type="hidden" name="MAX_FILE_SIZE" value="0">
Send this file: <input name="userfile" type="file">
<input type="submit" value="Send File">
</form>