Quote:
Originally Posted by fris
|
thanks the second link looks like exactly what I need but that code looks a bit weird to me (don't know php)
Code:
// You can have multiple installations in one database if you give each a unique prefix
$domain_list = array();
// auto database name
$domain_list["yourdomain.com"] = ??;
$domain_name = preg_replace(?/^www\./?, ??, $_SERVER["SERVER_NAME"]);
if (array_key_exists($domain_name, $domain_list))
{
$table_prefix = $domain_list[$domain_name];
if (!$table_prefix) { $table_prefix = ?wp_? . md5($domain_name); }
}
else
{
print ?Unknown error?; exit;
}
do I add every domain HERE:
$domain_list = array();
like
$domain_list = array(mydomain.com, mydomain2.com, mydomain3.com);
??
or just use the code as it is
thanks