MsKazza Posted October 22, 2011 Share Posted October 22, 2011 Hi all, I want to be able to have one file (configuration file i guess) where i set the phone number, address, staff names and positions, etc. and then have them display at different places on various pages. I thought they were inc files, but all i can find is the likes of headers and footers. Any help much appreciated. I just don't know what it's called, if someone can point me in the right direction, thanks. MsKazza Quote Link to comment Share on other sites More sharing options...
Solution silkfire Posted October 22, 2011 Solution Share Posted October 22, 2011 You can save them to the session, which makes them accessible on all your sites in a particular domain. $_SESSION['phone_number'] = '9423042304320'; Don't forget to start your page with session_start() before playing with sessions or you'll get an error. Quote Link to comment Share on other sites More sharing options...
MsKazza Posted October 22, 2011 Author Share Posted October 22, 2011 typical i've found it thanks, must be having brain freeze today or something, declared variables in common.php, required it in header.php and then echo'd the variables i wanted. thanks for reply though. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.