I still get the processing done first, and then included.
What I have is
file.php is
<?
include("file1.php");
?>
file1.php is
<?
$section = dirname($PHP_SELF);
if ($section == "\DirectoryNameA")
{
echo "menu1";
}
else
{
echo "menu2";
}
But I always get menu2 printed as file1.php isn't in \DirectoryNameA.
Owain