Re: file uploads grief on linux, but okay on BSD
| From: | Rasmus Lerdorf | Date: | Thu, 06 Sep 2001 07:12:16 +0000 |
| Subject: | Re: file uploads grief on linux, but okay on BSD | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-66158@lists.php.net to get a copy of this message | ||
Are you using move_uploaded_file() to move the file into place?
On Thu, 6 Sep 2001, Justin French wrote:
> Hi all,
>
>
> My understanding of the whole file uploading thing is not fantastic, and
> i'm unsure where to go next with this one.
>
> I have a file-upload script which works fine on my test server
> (FreeBSD/PHP4/MySQL/Apache)... when I upload the script to my host,
> change the config as needed (different document root), the script falls
> over with the following warning:
>
> ---
> Warning: SAFE MODE Restriction in effect. The script whose uid is 10619
> is not allowed to access /tmp/phpMHBFJk owned by uid 0 in
> /usr/local/plesk/apache/vhosts/soundpimps.com/httpdocs/admin/inc/pimp_add_pic.php
> on line 112
> ---
>
> The script DOES NOT upload the image as a blob into MySQL, it just
> copies the file into a directory i have specified.
>
>
> To me, it looks like the permissions for PHP's temp directory (where
> file uploads temporarily go??) are not right, so I should be contacting
> the Hosting ISP. But before I do, I want to make sure this is the case,
> or find out if there are any work arounds that enable me to skip the
> whole temp dir thing.
>
> Maybe I've got it all wrong.
>
>
> The target server is a Linux box.
>
>
> Justin French
> Indent.com.au
>
>