I am currently in the progress of making a basic PHP app/page, However, I have run into a problem. I have needed to make a script which will edit a variable in another script and set it to something.
For example, One script would say:
$test = "username";
And the other script would set that variable to something else.
So, Once the PHP script's (index.php) page is loaded, The PHP script will change the first script (variables.php) to:
$test = "username20";
However, I do not know how to do this. Is there any possible way that I could do this?
EDIT:
I need a basic auto-editor like this because the file is a configuration file (So basically, I need the text inside to be there permanently, Meaning that a "Session" will not work.).
Thank you if you can help.