trying to upload a file to the server in secure area...its just not working for me...what am I doing wrong? destination folder has 0777 permissions
Bastien
I wish my computer would do what I want it to do,
instead of what I tell it to do...
Code:
$uploaddir = "/services3/i/n/xxxxxxxx.com/secure/app/data/";
$uploadfile = $uploaddir . basename($_FILES['userfile']['name']);
echo '<pre>';
if (move_uploaded_file(basename($_FILES['userfile']['tmp_name']), $uploadfile)) {
echo "File is valid, and was successfully uploaded.\n";
} else {
echo "Possible file upload attack!\n";
}
echo 'Here is some more debugging info:';
print_r($_FILES);
print "</pre>";
Bastien
I wish my computer would do what I want it to do,
instead of what I tell it to do...