RE: [PHP] including files...

From: Date: Sun, 02 Feb 2003 18:28:10 +0000
Subject: RE: [PHP] including files...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-134020@lists.php.net to get a copy of this message
> hi was just wondering if there was a way to have a php file with all > constant variables like db mysqluser and password and a few other things > defined in a file of its own and then be able to use the variables in it > for > the project it was built for? > > the last i knew it could be done and all i needed to do was make the file > put the definitions in it and then put: > include("filename.inc"); at the top of the page..is this right or is there > more to it than that? Pretty much. Only addition is to make sure filename.inc can't be viewed through the browser. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/

« previous php.general (#134020) next »