Jump to content

How can I update a variable globally?


jdock1

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.