View Single Post
Old 02-13-2009, 09:33 AM  
Antonio
Too lazy to set a custom title
 
Antonio's Avatar
 
Join Date: Oct 2001
Location: Spartaaaaaaaaa
Posts: 14,136

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
Antonio is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote