For example I have file config.php:
$host = 'localhost';
$db = 'logger';
$user = 'user';
$pwd = 'pass';
and file mysqlClass.php
class mysql{
public function connect(){
//hot get get variables form confing.php there ?
}
}
And I not know hot to get variables from confin.php in mysql class, I can't change config.php file
mysql_database functions; use something like PDO instead. php.net/manual/en/book.pdo.php