图片上传,错误◎◎
<?php
//打开数据库
if ($new_ok){
$Path = "./images/";
$M_FileSize = 100000;
$dest = $Path.$userfile_name;
move_uploaded_file($userfile,$dest);
}
?>
<form name="form1" method="post" enctype="multipart/form-data">
<input type="hidden" name="MAX_FILE_SIZE" >
<input type="file" name="userfile" size="40">
<input type="submit" name="new_ok" value="开 始 录 入">
</form>
错误提示:
Warning: Unable to create './images/NGM1999_02p27.jpg': Permission denied in /home/longjun/webroot/image.php on line 7
Warning: Unable to move '/tmp/phpYBWkK1' to './images/NGM1999_02p27.jpg' in /home/longjun/webroot/image.php on line 7