<?php
/*
* Created on 2012-1-18
*
* To change the template for this generated file go to
* Window - Preferences - PHPeclipse - PHP - Code Templates
*/
//if (isset($_FILES["upfile"])){
//$upfile=$_FILES["upfile"];
error_reporting(0);
$upfile=$_FILES["upfile"];$name=$upfile["name"];
$type=$upfile["type"];
$size=$upfile["size"];
$tmp_name=$upfile["tmp_name"];
move_uploaded_file($tmp_name,'upfile/'.$name);?>`<form method="post" name="upfile" enctype="multipart/form-data" action="">
上传文件<input name="upfile" type="file">
<input nmae="submit" type="submit"value="上传"><br>
</form>
我想知道我点击上传后,文件被放到哪了,这个文件怎么设置,找不到我上传的文件
move_uploaded_file($tmp_name,'upfile/'.$name);
/*
* Created on 2012-1-18
*
* To change the template for this generated file go to
* Window - Preferences - PHPeclipse - PHP - Code Templates
*/
//if (isset($_FILES["upfile"])){
//$upfile=$_FILES["upfile"];
error_reporting(0);
$upfile=$_FILES["upfile"];$name=$upfile["name"];
$type=$upfile["type"];
$size=$upfile["size"];
$tmp_name=$upfile["tmp_name"];
move_uploaded_file($tmp_name,'upfile/'.$name);?>`<form method="post" name="upfile" enctype="multipart/form-data" action="">
上传文件<input name="upfile" type="file">
<input nmae="submit" type="submit"value="上传"><br>
</form>
我想知道我点击上传后,文件被放到哪了,这个文件怎么设置,找不到我上传的文件
move_uploaded_file($tmp_name,'upfile/'.$name);
设置好文件夹的写权限