I\'m trying to pass a variable into an include file. My host changed PHP version and now whatever solution I try doesn\'t work.
I think I\'ve tried every op
I have the same problem here, you may use the $GLOBALS array.
$GLOBALS["variable"] = "123"; include ("my.php");
It should also run doing this:
$myvar = "123"; include ("my.php"); .... echo $GLOBALS["myvar"];
Have a nice day.