Re: Unable to upload.. :(
| From: | Boris Kolev | Date: | Sun, 24 Nov 2002 12:07:41 +0000 |
| Subject: | Re: Unable to upload.. :( | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-125784@lists.php.net to get a copy of this message | ||
This is a forwarded message
From: Boris Kolev <boris@magicbg.com>
To: toby z <blue_myth_1@yahoo.com>
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:boris@magicbg.com