This is a forwarded message From: Boris Kolev <[EMAIL PROTECTED]> To: toby z <[EMAIL PROTECTED]> Date: Sunday, November 24, 2002, 2:02:09 PM Subject: [PHP-WIN] Unable to upload.. :(
===8<==============Original message text=============== Hello toby, Sunday, November 24, 2002, 1:04:25 PM, you wrote: tz> Hi all tz> I am trying to upload a file. It works fine on my local Apache, but tz> gives me "Permission denied to create file" error on my online host.. tz> Any clue??? tz> $file = $_FILES['userfile']['tmp_name']; tz> if (is_uploaded_file($file)) tz> print_r("Copying ".$file); tz> if (copy($file, "./files/". $_FILES['userfile']['name'])) tz> echo("Success"); tz> else tz> echo("Failure"); tz> __________________________________________________ tz> Do You Yahoo!? tz> Everything you'll ever need on one web page tz> from News and Sport to Email and Music Charts tz> http://uk.my.yahoo.com Hi because online apache use user to create files in folder but your administrator must give rights(access) to tish user in this folder to create files :)) -- Best regards, Boris mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php