Re: copy & permissions
| From: | Rasmus Lerdorf | Date: | Sun, 18 Jun 2000 23:25:16 +0000 |
| Subject: | Re: copy & permissions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-2174@lists.php.net to get a copy of this message | ||
> I've created a upload script with php. When it comes
> to copy the uploaded file to the desired directory
> (copy($userfile,$destination_dir.$userfile_name);)
> php returns the following warning:
> "Warning: Unable to create 'dok//Cha0600b.xls': Permission denied in
> /home/tintsch/public_html/swisscharts/index.php on line 344"
> What is this "permission denied" all about? Do I have to change
> the permissions of the script? and how?
The user id your web server runs as does not have permission to create the
dok//Cha0600b.xls file. Why do you have 2 slashes there anyway? And does
this dok directory exist? And if it does, can the web server user id
write to it?
-Rasmus