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
OPTION 1 worked for me, in PHP 7, and for sure it does in PHP 5 too. And the global scope declaration is not necessary for the included file for variables access, the included - or "required" - files are part of the script, only be sure you make the "include" AFTER the variable declaration. Maybe you have some misconfiguration with variables global scope in your PHP.ini?
Try in first file:
mysecondfile.php
It should work... if it doesn't just try to reinstall PHP.