including files...

From: Date: Sun, 02 Feb 2003 15:53:48 +0000
Subject: including files...
Groups: php.general 
Request: Send a blank email to php-general+get-134003@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? --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003

« previous php.general (#134003) next »