I had to create the Config file..then i uploaded it then worked fine.. but then i go to create a short url and get this..

this is what global php looks like.
PHP Code:
<?php
function db_connect() {
global $config;
mysql_connect($config['db_hostname'].":".$config['db_port'], $config['db_username'], $config['db_password']) or die(mysql_error());
mysql_select_db($config['db_name']) or die(mysql_error());
}
function generate_url() {
$keys = "23456789abcdefghkmnpqrstvwxyz";
$i = 0;
$url = "";
while ($i < 6) {
$random = mt_rand(0, strlen($keys) - 1);
$url .= $keys{$random};
$i++;
}
return $url;
}
?>
do i have to point to a database? if so how do i create and have the url service point to it?