Re[2]: [PHP] Scripts creating files and folders into un/grp "Nobody" on Apache
| From: | Tom Rogers | Date: | Thu, 11 Mar 2004 07:58:57 +0000 |
| Subject: | Re[2]: [PHP] Scripts creating files and folders into un/grp "Nobody" on Apache | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-180113@lists.php.net to get a copy of this message | ||
Hi,
Thursday, March 11, 2004, 5:52:08 PM, you wrote:
>> Use the php ftp functions to create directories and move uploaded
>> files would be one way.
>>
>> --
>> regards,
>> Tom
J> Move the uploaded files? You mean create the directory in the wrong spot and
J> then move it to the right spot? and the same with the files?
No, I mean use ftp_connect function and login using your username and
password with ftp_login, then
use ftp commands to create a new directory (ftp_mkdir)and to put
(ftp_put) the uploaded file there from its temp location. That way any
new directories and files will have the correct username as the owner.
Have a good look at the FTP functions in the manual.
--
regards,
Tom