PDA

View Full Version : HardCode config.php variables


blank
10-28-2006, 04:55 PM
Open config.php and delete this part: $resultconfig = @mysql_query("SELECT * FROM config LIMIT 1");
$row = mysql_fetch_row($resultconfig);
define all of the variables below that like this, change this: $site_title = "$row[0]";
to: $site_title = "Tons of FREE VIDEOS!";


just go through the list of variables and hardcode them. This chops out a query on EVERY page and as you get pretty big you'll want the added speed. For me editing config.php is probably easier than even the /admincp form.

nowares
11-28-2006, 09:58 AM
i agree, speed is important :)

how many ppl change their site title often anyway lol

Blank do you co-own(/run) MediaScriptSite ?