jdock1 Posted August 9, 2009 Share Posted August 9, 2009 Meaning, I made a script that uses user-set variables. The admin side will allow to change the variable. Say I got a variable in a.php and its a 4 digit code. I want to go through the admin side and edit the variable from there. So if the variable in a.php was $code, its set as 0000 , and I update it in the admin side to 1111, how could I do this? Would I have to use fwrite or what? Sorry for the noob question. Link to comment https://forums.phpfreaks.com/topic/169507-how-can-i-update-a-variable-globally/ Share on other sites More sharing options...
nuttycoder Posted August 9, 2009 Share Posted August 9, 2009 you could use fwrite its stored in a text file a better approach would be to store it in a session or even a database. Link to comment https://forums.phpfreaks.com/topic/169507-how-can-i-update-a-variable-globally/#findComment-894357 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.