Articles
Databases
Cross-platform and Portable Development With PHP - Page 3
by: PHP Builder Staff
|
July 20, 2001
On each target we include a tiny file which specifies the database in use, the hostname, username and password. Here is an edited version:
<?
// config.php
//
// database management system ('mssql' or 'mysql'):
$DBms = 'mysql';
// database server:
$DBhost = 'landlord.gbdirect.co.uk';
$DBuser = 'xxxx';
$DBlpass = 'yyyy';
// database:
$DBname = 'zzz';
?>