On Sunday 02 February 2003 23:53, Sunfire wrote: > 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
Yes. > or is there > more to it than that? Not really. I just don't understand, it would have been _far_ easier for you to test it for yourself by writing a single-line file to init a variable, then a two-line file to include 1st file and display variable, than to have posted to the list. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* I called my parents the other night, but I forgot about the time difference. They're still living in the fifties. -- Strange de Jim */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php