Does PHP have global variables that can be modified by one running script and read by another?
You can use $_SESSION, i.e.:
script1.php
script2.php