PDA

View Full Version : PHP for FTP login?


eric_darling
01-17-2003, 05:34 PM
OK, here's a screwball question... I'm looking to provide a REALLY easy way to provide authorized users of a web site to be able to log in to the local host's FTP server, and navigate it using their web browser. I bet this can be done using PHP, so here's the specific need:

User provides username and password, and according to a simple config.php script that is defineable by myself to include multiple usernames and their associated passwords, that user is directed to the proper associated directory for FTP usage. All the user needs to remember is their username and password. They fill out a simple form on an HTML page, and voila! they are instantly transported to their proper directory. Should they enter an invalid username/password combo, they are dumped to an error page. Use is logged to a text file.

Has anyone scripted something like this before? I'd love to see it.

Derek
01-18-2003, 01:54 AM
Hi Eric - not quite sure if I am reading this correctly!

Would it not be easier/as easy to define the users/permissions in the server and let the Browser handle the login?
You wouldn't have to script anything! /ubbthreads/images/icons/smile.gif

eric_darling
01-18-2003, 09:16 PM
Easier on me, definitely. I'm just looking for a way to make it a snap for clients to log-in, upload or download files to my web site, 24 hrs. a day in a specific set of directories. I'm oh so very close right now, but still having problems with temp directory transfers from HTML to PHP via a little script I've modified to suit my purposes.

Corey
01-18-2003, 10:03 PM
Let me know what you come up with, I need to develop something very convenient like that for the new exchanges. We need to offer reliable FTP uploads for all our users in a simple manner, i.e. uploading via their browsers to our FTP would be great as long as it's reliable and efficient.

(Obviously with the option to use an FTP client also if desired for our savvier users)

We don't have to have any passwords though so it makes it easier... We'll just give users write only access to an upload directory and have a cron script which combs that directory every 15 minutes and moves it contents to a non-public directory...

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)