PHP design question
Posted: Wed Jan 28, 2004 8:14 am
What i'm needing to do is write a config file which i keep in the main www dir.
In this file i'm able to set the mysql db username and pass as long with the site name.
First off. My question is how would i set that inside of the config file?
$sitename = "whatever";
Global $sitename; ?
Once i have it set.. How would be the best way to call those vars from the config file. I.E
include('config.inc');
$_GET['sitename']; ??
Thank you for your time and help and most of all patients.
- Anthony
In this file i'm able to set the mysql db username and pass as long with the site name.
First off. My question is how would i set that inside of the config file?
$sitename = "whatever";
Global $sitename; ?
Once i have it set.. How would be the best way to call those vars from the config file. I.E
include('config.inc');
$_GET['sitename']; ??
Thank you for your time and help and most of all patients.
- Anthony