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^$7$?!#(B

PHPINFO$B$+$i(B
		Local Value	Master Value
file_uploads		1		1
memory_limit		8M		8M
upload_max_filesize	2M		2M
upload_tmp_dir		no value	no value
post_max_size		8M		8M


$B%=!<%9-!"-(B

<form enctype=multipart/form-data name="form1" action="test2.php" method="POST">
<input type="file" name="pic">
<input type="submit" name="Submit22" value="$B!!3N!!G'!!(B">
</form>


$B%=!<%9-""-(B


<?
echo $_FILES['pic']['tmp_name'];
echo "<br>";
echo $_FILES['pic']['size'];
echo "<br>";
echo $_FILES['pic']['type'];
echo "<br>";
echo $_FILES['pic']['error'];
echo "<br>";

    $tmp_file_name="/var/www/html/test/pic";
    if (is_uploaded_file($_FILES['pic']['tmp_name'])) {
        copy($_FILES['pic']['tmp_name'],$tmp_file_name);
#       $move_rtn= move_uploaded_file($_FILES['pic']['tmp_name'],$tmp_file_name);
    }else{
        echo "ERROR";
    }

?>


$B0J>e!"$465<x$h$m$7$/$*4j$$$$$?$7$^$9!#(B



$B?@ED=!=)(B



PHP-users メーリングリストの案内