Uploading a file
Posted: Wed Apr 16, 2003 6:35 am
Hi there
I'm new to PHP, and I'm trying to upload a file
but everytime I try I get the following error message :
The directory I'm uploading does exist, so if anyone can help me or point me in the right direction I would very thankful.
I'm new to PHP, and I'm trying to upload a file
but everytime I try I get the following error message :
Line 18 isWarning: Unable to create '/usr/www/users/weblet/fmtest/uploads/Ckinfo.txt': Permission denied in /usr/www/users/weblet/fmtest/upload_go.php on line 18
Warning: Unable to move '/tmp/phpyZaS22' to '/usr/www/users/weblet/fmtest/uploads/Ckinfo.txt' in /usr/www/users/weblet/fmtest/upload_go.php on line 18
Possible file upload attack! Heres some more info:
Array
(
[userfile] => Array
(
[name] => Ckinfo.txt
[type] => text/plain
[tmp_name] => /tmp/phpyZaS22
[error] => 0
[size] => 1392
)
)
Code: Select all
<?php
move_uploaded_file($_FILES['userfile']['tmp_name'], $uploaddir.$_FILES['userfile']['name']))
?>