I am dealing with a strange PHP issue.
In my script, I have the following:
$includeRoot = '/home/mydomain/include/';
include_once $includeRoot."table_names.inc";
echo $usersTbl;
The output produces nothing. $usersTbl is defined in table_names.inc as follows:
$usersTbl = 'users';
This code works fine in another script. I tried the following:
Changing include_once to require_once
The problem does not seem to be that the code cannot find the file. If I do the following:
echo (file_get_contents($includeRoot."table_names.inc"));
it actually echoes out the file contents. What am I not seeing here?