> 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/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to