Codex tools: Log in
Checks to see if the blog already exists, and if not it then inserts the blog into the database using insert_blog.
For domain-based blogs, $domain should contain the entire domain of the new blog.
$domain = 'myblog.wordpress.com';
For path-based blogs, $path should contain the path to the new blog.
For domain-based blogs this value should be "/".
$path = '/'; // for domain-based blogs
$path = 'myblog'; // for path-based blog
<?php create_empty_blog($domain, $path, $weblog_title, $site_id); ?>