Re: Re[2]: [PHP] Scripts creating files and folders into un/grp "Nobody" on Apache

From: Date: Thu, 11 Mar 2004 08:04:36 +0000
Subject: Re: Re[2]: [PHP] Scripts creating files and folders into un/grp "Nobody" on Apache
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-180114@lists.php.net to get a copy of this message
sorry but i'm trying to avoid putting my ftp login in password directly into my script. i should have mentioned that earlier. any other ideas? "Tom Rogers" <trogers@kwikin.com> wrote in message news:1456391408.20040311175857@kwikin.com... > 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

« previous php.general (#180114) next »