PDA

View Full Version : to connect before global.php


Augustino
01-04-2007, 04:47 PM
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'filename');

$conexion=mysql_connect("localhost","username","pass") or die ("no se ha podido conectar a la BD");
mysql_select_db("database") or die ("error");
$clasif = mysql_query("THE SELECT WITH TEMPLATE LIST AND FILES THE WHERE MUST HAVE THE REFERENCE PAGE");
$listatemplate=mysql_result($consulta,0,"template");
$globaltemplates=explode(".", $listatemplate);

//After the global.php
require_once('./global.php');



Is working but I think not is so good idea because openning a new connection, which mean more resource usage instead of use the same connection of vBulletin, How can I use the same connection than vBulletin

Anyother idea?

PD. Please disable the automerged double post , in this forum

Cap'n Steve
01-05-2007, 07:03 AM
So you want to use vBulletin's connection before it's created? You can either invent time travel, make a second connection, or just cache all the templates you might need.