Help required... Simple File Upload
| From: | Raheel Hussain | Date: | Sun, 24 Nov 2002 07:21:11 +0000 |
| Subject: | Help required... Simple File Upload | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-17094@lists.php.net to get a copy of this message | ||
hi,
I got a problem in a simple file upload in a php file , i have two pages and i m writing the code
here as bellow
::page1.php::
<html>
<head>
</head>
<body>
<form name="f" method="post" enctype="multipart/form-data"
action="default2.php">
<input type="hidden" name="MAX_FILE_SIZE" value="78728">
Send this file: <input name="userfile" type="file">
<input type="submit" value="Send File">
</form>
<body>
<html>
::default2.php::
move_uploaded_file($_FILES['userfile']['tmp_name'],
"D:\\Raheel\\W3sites\\txtfiledemo\\uploads\\");
print($_FILES['userfile']['error']);
:: on default2.php i have the following error, which i can't figure out ::
Warning: Unable to create 'D:\W3sites\txtfiledemo\uploads\': Permission denied in
D:\W3sites\txtfiledemo\default2.php on line 9
Warning: Unable to move 'c:\php\uploads\php76.tmp' to
'D:\W3sites\txtfiledemo\uploads\' in D:\W3sites\txtfiledemo\default2.php on line 9
0
---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now