Yeni kullanıcı kayıt, script otomatik sorun yaratabilir!

2 Cevap php

onlar için kuracak: (wordpress, blog vb. gibi) im şu ki, yeni bir kullanıcı kayıt, bir komut bir php komut dosyası oluşturmak için çalışıyoruz.

Şu anda sadece tek bir kurulum için aşağıdaki kodu kulüpler var, but how can i setup a form for multi user?, hangi sadece girişine onlara izin kullanıcı adı (subdomain) ve şifre.

<?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 );
?>

Ya yardımcı olacak herhangi bir öğretici takdir edilir! Teşekkürler!

2 Cevap

I guess by subdomains you want something like, user1.wordpress.com; user2.wordpress.com; user3.wordpress.com ?

Aslında alt alanlar oluşturmak gerçekten göründüğü kadar karmaşık değildir

1, you need to configure your DNS Records to accept wild card entries. this is a good read that might help. wildcard-dns-and-sub-domains

2, define / design your application to support it; where you can filter every incoming request based on the url accessed, and take appropriate actions; display theme; or fetch data; etc.

you might also want to look at opensource, wordpress-mu and status.net both in PHP or the Jaiku.com written in Python on Google AppEngine.

3, anyname.mysite.com kabul etmek, uygun bir biçimde web sunucusu yapılandırmak; ve bu app gönderebilirsiniz.

Ödeme Puppet.

Vb sanal konaklar, kullanıcıları, kurma, yazılım kurulumu otomatikleştirmek için kullanabilirsiniz

Örnek wordpress install via puppet manifest