I'm bussy making a client management system, and I'm trying to make it as flexable as posible. I'm doing that by making a configuration file that stores all the information, such as; login name and password, database login and a few other things. By doing that there no need to dig into every class file and changes the variables. Now making a config file was no problem. I made a php file, so i basically just require it into my main class and spread the info out. My problem is, that i also want to be able to change these variables. Change the login name/pass and so on, so that it becomes more userfriendly.
I've been surfing around the internet looking for a solution, but with out any luck. I'm sure i just don't know the right terms, to make a decent search. If anyone knows anything about the subject, please guys, do not hesitate!
So basically what i need, is a method to change and save a php file, through a php file..
I've been surfing around the internet looking for a solution, but with out any luck. I'm sure i just don't know the right terms, to make a decent search. If anyone knows anything about the subject, please guys, do not hesitate!
So basically what i need, is a method to change and save a php file, through a php file..