Shared variables
-
Hello Alex,
Very nice plugin, simple and does the job well.When having multiples php instances that share same variable, i noticed that I have to include same variable in each instance, so basically when updating variables, I would have to do it in all instances every time.
Is there a way to have one instance where I update the variable and then it shares it across all instances that are posted on same page?
Example:
<?php
//master update here
if($instance==”1″)
{
$date1=”2018-08-01″;
$date2=”2017-11-01″;
}
if($instance==”2″)
{
echo $date1;
}
if($instance==”3″)
{
echo $date2;
}?>
Many thanks.Naim
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Shared variables’ is closed to new replies.