Trying to help someone with their php based site, I cannot run it locally as I get errors for 'Undefined variable: dbhost' etc. when trying to use any page that connects to mysql.
dbConfig.php:
<?
$dbhost="HOST"; // Host name
$dbusername="USER"; // Mysql username
$dbuserpass="PASS"; // Mysql password
$dbname="NAME"; // Database name
?>
Excerpt from including php file (e.g. login.php):
include_once ("../include/dbConfig.php");
$db_handle = mysql_connect($dbhost, $dbusername, $dbuserpass) or die(mysql_error());
This works fine in his hosted server solution on PHP 5.1. My local setup is Apache & PHP 5.5 on Windows 7.