You need to be copying files to a directory that the user PHP runs as has
write-access to.
Windows NT file permissions are accessed by using right-click.
Other Windows versions, only Bill Gates knows.
--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Dhaval Desai <[EMAIL PROTECTED]>
Newsgroups: php.general
Sent: Saturday, February 24, 2001 1:31 AM
Subject: [PHP] Upload --Permission denied simple error...
> hi!
>
>
> I have fws simple lines:
>
> if ($userfile) {
> copy($userfile, "C:\\");
> } else {
> echo "Possible file upload attack: filename
> '$userfile'.";
> }
>
> ?>
>
>
> Warning: Unable to create 'C:\': Permission denied in
> c:\phpdev2\www\upload\action.php on line 3
>
>
>
> and I get this error..I tried coyping to D:\ too but
> the same error..
>
>
>
> Can u tell me what could be the problem possibly..
>
> Thank you
> Dhaval Desai
>
> __
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail.
> http://personal.mail.yahoo.com/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]