E' sufficiente che file2.php include file1.php per poter accedere alle variabili del suo scope.