note 7530 deleted from mysql_connect by danbeck

From: Date: Thu, 07 Sep 2000 15:26:25 +0000
Subject: note 7530 deleted from mysql_connect by danbeck
Groups: php.notes 
Request: Send a blank email to php-notes+get-4359@lists.php.net to get a copy of this message
As per hiding your database username password - what I do is put a file in my root www directory called "global.php". In this I define a variable $INCLUDE="/home/users/myname/include". Then in that folder I make a file called "db.php" with my username/password as variables. I include db.php and all other include files with: require "global.php"; require "$INCLUDE/db.php";

« previous php.notes (#4359) next »