Hi all I am trying to upload a file. It works fine on my local Apache, but gives me "Permission denied to create file" error on my online host.. Any clue???
$file = $_FILES['userfile']['tmp_name']; if (is_uploaded_file($file)) print_r("Copying ".$file); if (copy($file, "./files/". $_FILES['userfile']['name'])) echo("Success"); else echo("Failure"); __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php