New user register, script auto create problems!
- by SKY
Hi, im currently trying to create a php script that when a new user register, a script (eg:wordpress,blog etc..) will install for them.
I'm currently got the code below for just single setup, but how can i setup a form for multi user? which only allowing them to input the username (subdomain) and password.
<?php
class scriptname_Config {
public static $title = 'new_script_title';
// Domain name and path where new script will installed in
public static $domain = 'username.domain.com';
public static $absolutePath = '/new_register_username/';
// Settings for general mysql database
public static $db = array(
'host' => 'localhost',
'database' => 'scriptname',
'user' => 'root',
'password' => '',
'prefix' => 'scriptname_'
);
}
define( 'scriptname_BASE_URL', 'http://'.scriptname_Config::$domain.scriptname_Config::$absolutePath );
?>
Or any tutorial that will help is appreciate! Thanks!