New user register, script auto create problems!

Posted by SKY on Stack Overflow See other posts from Stack Overflow or by SKY
Published on 2010-04-30T19:01:13Z Indexed on 2010/04/30 19:07 UTC
Read the original article Hit count: 164

Filed under:
|

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!

© Stack Overflow or respective owner

Related posts about php

Related posts about mysql