Jump to content


Php script: makes sub domeins, mysql and ftp account


2 replies to this topic

#1 shub

    Young Padawan

  • Members
  • Pip
  • 43 posts
  • Gender:Male
  • Location:belgium

Posted 17 September 2007 - 10:24 AM

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

#2 Demonslay

    P2L Jedi

  • Members
  • PipPipPip
  • 970 posts
  • Gender:Male
  • Location:A strange world where water falls out of the sky... for no reason.
  • Interests:Graphic Design, Coding, Splinter Cell, Cats

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.

Edited by Demonslay, 17 September 2007 - 04:46 PM.


#3 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 17 September 2007 - 04:47 PM

*cough*

http://www.cpanel.ne.../docs/index.htm





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users