bobbiedigital
Programmer
Hi im making a config file called siteconfig.php for a website within this file i have common variables used through out the site. the variables in the files are as such
$siteName = "Some ones website";
$siteOwner = "Joe bloggs";
Im trying to get these editable via a form, there is one way its possible to do it is opening the file and creating a regular expression, but are there other ways???
Possibly creating all the variables as an array, then create a function to return the array when its needed.
Are there any other ways of doing this and editing the variables????
Thank you for your time
Bobbie
$siteName = "Some ones website";
$siteOwner = "Joe bloggs";
Im trying to get these editable via a form, there is one way its possible to do it is opening the file and creating a regular expression, but are there other ways???
Possibly creating all the variables as an array, then create a function to return the array when its needed.
Are there any other ways of doing this and editing the variables????
Thank you for your time
Bobbie