I have a .php script with 2 variables. $company and $user. During this .php script I require_once "/var/www/etc/etc/etc/etc/"
The .php file that I require_once, the variables from the previous .php script dont' transfer over. I can't figure out why, or what I am doing wrong. Ex.
master.php script
$company = "Some Company";
$user = "John";
require_once "/var/www/$company/$user/example.php
example.php script
$myFile = "/var/www/$company/$user/Template/Download/example.php";
The data that is held in the variables $company & $user doesn't hold through on the example script. I can't understand why.
Thanks