The Option one if tweaked like this, it should also work.
The Original
Option One
In the first file:
global $variable; $variable = "apple"; include 'second.php';
In the second file:
echo $variable;
TWEAK
In the first file:
$variable = "apple"; include 'second.php';
In the second file:
global $variable;echo $variable;