PHP Problem (9, permasaged)

2 Name: #!/usr/bin/anonymous : 2008-07-03 04:10 ID:pvlLi3dI

better performance= using associative arrays;

config.php:

$config['username'] = 'faganon';
$config['password'] = '2hacker4u';
$config['hostname'] = 'db.gtfo.org';

so, main.php

(NEVER require. use require_once or include_once. unless you want to get redefining shit errors.)

include_once('config.php')
mysql_shit($config['hostname'], $blahblah);

if that fails, you can also try var_dump($config);

This thread has been closed. You cannot post in this thread any longer.