permissions on uploaded files via PHP

From: Date: Thu, 17 Jan 2002 03:46:59 +0000
Subject: permissions on uploaded files via PHP
Groups: php.general 
Request: Send a blank email to php-general+get-80869@lists.php.net to get a copy of this message
Hi, I have a script which uploads an image to a directory within web root (on Redhat 7.0). Whilst the dir itself was created via FTP, the images of course have been written to the dir via a PHP script. When I try to FTP a copy of the images down to my local hard disk, I get "permission denied". What's happening here? My guess is the following: Things like this performed by PHP are not attached to me (the user)... they're probably performed by nobody or root or something, hence I (the FTP user and account holder) don't own the uploaded file, and the permissions set for the file by default are not wide enough to permit me to download it, rename it, etc. Correct? So, then what do I need to do? Does the script which uploads the file have to change the owner anmd permissions of the file? Justin French Indent.com.au

« previous php.general (#80869) next »