file uploads grief on linux, but okay on BSD

From: Date: Thu, 06 Sep 2001 06:09:32 +0000
Subject: file uploads grief on linux, but okay on BSD
Groups: php.general 
Request: Send a blank email to php-general+get-66156@lists.php.net to get a copy of this message
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

« previous php.general (#66156) next »