hello,
I'm looking for some sort of registration form that will make the following new things for the users after they confirmed there e-mail:
Make a mysql database whit there site name they gave and there pass
make a ftp account
make pop3 e-mail
make subdomein
i use latste cpanel pro on my server...
someone can help me on that?
thnx
~Shub
Php script: makes sub domeins, mysql and ftp account
Started by shub, Sep 17 2007 10:24 AM
2 replies to this topic
#1
Posted 17 September 2007 - 10:24 AM
#2
Posted 17 September 2007 - 04:45 PM
Just do a search for simple registration and login scripts.
And don't make a database for each member! That's nothing but a huge waste of memory and server space! You only need one row in a table for everything, and if you need other things, connect them with other tables in the same database.
Unless this is for something like a hosting company? If so, then disregard the above comment, lol.
Look into PHP MySQL Functions. You'll want to look into the mysql_create_db() function. I don't think you can make a username and password for MySQL from PHP functions. You'll have to reference from the MySQL manual and see if there are commands to do such with SQL. I know you can use GRANT and such, but I don't know about creating users.
As for FTP, I don't think you can create users with PHP. You can check the PHP FTP Functions and search from there, but I really don't think you can.
As for sub-domain and an email account, I can't really help you there. Google works wonders though.
-Let's see what rc has to say, lol.
And don't make a database for each member! That's nothing but a huge waste of memory and server space! You only need one row in a table for everything, and if you need other things, connect them with other tables in the same database.
Unless this is for something like a hosting company? If so, then disregard the above comment, lol.
Look into PHP MySQL Functions. You'll want to look into the mysql_create_db() function. I don't think you can make a username and password for MySQL from PHP functions. You'll have to reference from the MySQL manual and see if there are commands to do such with SQL. I know you can use GRANT and such, but I don't know about creating users.
As for FTP, I don't think you can create users with PHP. You can check the PHP FTP Functions and search from there, but I really don't think you can.
As for sub-domain and an email account, I can't really help you there. Google works wonders though.
-Let's see what rc has to say, lol.
Edited by Demonslay, 17 September 2007 - 04:46 PM.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users
