Re: Help with file upload
| From: | Ruprecht Helms | Date: | Thu, 16 Oct 2003 07:33:14 +0000 |
| Subject: | Re: Help with file upload | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-31056@lists.php.net to get a copy of this message | ||
On Thu, 2003-10-16 at 07:14, John W. Holmes wrote:
> Bunmi Akinmboni wrote:
>
> > Warning: move_uploaded_file(./ayservenet.jpg): failed to open stream:
> > Permission denied in /home/ayserve/public_html/fu/fuprocess.php on line 6
>
> PHP runs as the web server and it does not have permission to write to
> the current directory. If you're using IIS, PHP runs as the
> IUSR_<computer_name> user.
And how is it by running Linux. I've a similar problem with my provider
in uploading files via php. The permissions in the html-subdir are set
that all persons have write-permissions.
At the moment I work with a workaround that by using email to transfer
the file to me to be uploaded via ftp. But the way should be that the
user should be able to upload a file by himselve via PHP.
Regards,
Ruprecht