ian89 Posted March 17, 2008 Share Posted March 17, 2008 Hi. I'm fairly new with PHP, MySQL, and Apache, and I have this project that I'm currently at lost for. I have to make a log-in page that would redirect different users to their respective folders in an FTP site, and I've made the database already. How do I continue? If anyone could help me with PHP coding, that would be greatly appreciated. Thanks much in advance. P.S. Is there a way that I can do it this way: users would register with an admin-given password, and their respective folder in the FTP would automatically be generated. The FTP I'm referring to is something very private and the admin wouldn't wan't anybody to have access on by just simply registering, that's why he has decided on giving the passwords himself to the people he knows personally. I hope this isn't too much. Thanks again. Quote Link to comment Share on other sites More sharing options...
pauleth Posted March 17, 2008 Share Posted March 17, 2008 Have you looked into using an FTP server such as ProFTPD, which allows you to use a MySQL backend to authenticate users, rather than going the PHP route? http://www.castaglia.org/proftpd/doc/contrib/ProFTPD-mini-HOWTO-SQL.html Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted March 17, 2008 Share Posted March 17, 2008 Have you looked into using an FTP server such as ProFTPD, which allows you to use a MySQL backend to authenticate users, rather than going the PHP route? A databasing language can not "authenticate users" you can only be authenticated via having an approved token of some sort like a session or cookie to the server that gives your machine the authentication needed. This will help you http://us.php.net/manual/en/ref.ftp.php Quote Link to comment Share on other sites More sharing options...
pauleth Posted March 17, 2008 Share Posted March 17, 2008 A databasing language can not "authenticate users" you can only be authenticated via having an approved token of some sort like a session or cookie to the server that gives your machine the authentication needed. This will help you http://us.php.net/manual/en/ref.ftp.php I wasn't saying that the database language is used to authenticate the user, but that the FTP server uses the database as a backend in its authentication. Quote Link to comment Share on other sites More sharing options...
ian89 Posted March 19, 2008 Author Share Posted March 19, 2008 I understand that I need to use PHP or something similar in order to authenticate users by basing on the database. But the FTP I'm referring to is remote, maintained by some hosting service. All I need is some sort of way that would redirect users to their specific folder in the FTP when they log in via a website. Thanks again. Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted March 19, 2008 Share Posted March 19, 2008 odds are you can't very easily make new remote ftp users for that distance server simply because your access to it is limited. You can probably however write a cURL version that uses your hosting c-panel to manage the user system but that is at the least a small atomic bomb of a mess Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.