Click these two links to hop back and forth between the two servers (test output at the bottom):
http://www.csulb.edu/~cota/includetest/subfolder (php v4.4.1, apache v1.3.37)
http://skua.csulb.edu/cota/includetest/subfolder (php v5.2.3, apache v2.2.4 - doesn't work right)
For this test, I have two files. One is called index.php and the other is called vars.php. index.php is located in /subfolder and vars.php is located in /inc
The content of vars.php is:
<?php $color = 'green'; ?>
This file (index.php) then includes vars.php with the following include statement:
include '../inc/vars.php';
and then the output is displayed with the following code:
echo "Color defined in vars.php: $color";
Here is the output:
Color defined in vars.php: green