Hi,
I have a piece of code that works exactly as i want it to on my WAMP system but gives me the following errors when i upload it onto a *nix system...
Please can anybody help me to see what's wrong... :/
Warning: Unable to create './UPLOADS/Mon12Apr200419_05_31.jpg': Permission denied in /usr/www/users/multeb/multebiz.co.za/v2/classes/DES_VERIFY_FORM.php on line 61
Warning: Unable to move '/tmp/phpE0HVou' to './UPLOADS/Mon12Apr200419_05_31.jpg' in /usr/www/users/multeb/multebiz.co.za/v2/classes/DES_VERIFY_FORM.php on line 61
Heres the lines of code....
$upload_dir = './UPLOADS';
@chmod($upload_dir, 0777);
if (is_uploaded_file($_FILES['fileFieldName']['tmp_name']) && is_dir($upload_dir)){
move_uploaded_file($_FILES['fileFieldName']['tmp_name'], $upload_dir.'/'.$_FILES['fileFieldName']['name']);
} else {
//error stuff..
}