Hmm... the file I have it outside of the forums directory - could that be an issue? Because nothing is being displayed, unlike when I put it in the forums directory.
EDIT: Ok, so will this take care of connecting to the database, database function and other vB functions? I have no need for sessions or any of that, just the *basic* things that will allow me to insert new threads.
PHP Code:
require('./admin/config.php');
$dbservertype = strtolower($dbservertype);
$dbclassname="./admin/db_$dbservertype.php";
require($dbclassname);
$DB_site=new DB_Sql_vb;
$DB_site->appname='vBulletin';
$DB_site->appshortname='vBulletin (forum)';
$DB_site->database=$dbname;
$DB_site->server=$servername;
$DB_site->user=$dbusername;
$DB_site->password=$dbpassword;
$DB_site->connect();
$dbpassword="";
$DB_site->password="";
require('./admin/functions.php');