Guys I want to create configure.php file where I can set different variables related to my new small module. I wish I store here my site's variable name and access this variable in all other files so if I change my site name in configure.php it may change at all places. I am doing this in configure.php $sitename = "GlobalCashSite"; And then I added configure.php in all php pages. For example at signup.php I am doing following: require "config.inc.php"; print $sitename; But script is not printing $sitename. Please help me what I am missing in this. My global_variable is off and I want to keep this off. GCS
If you are storing variables in config.php and require config.inc.php there is a biggggg problem. Make sure you include the correct filename, then only it would work.
Hi buddy That is not a problem, my correct file name is config.inc.php and I am using it correctly in files. Thanks for pointing it. GCS
As long as $sitename = "GlobalCashSite"; is in the file config.inc.php try. <?php include "config.inc.php";?> And echo instead. <?php echo $sitename;?> where you need it on your pages