Hello all
The below code:
if (strpos( $GLOBALS["SCRIPT_NAME"], $url )==true ||
strpos( $leveltwodir, $url)==true)
{
Gives me an error, the error is:
Undefined Index SCRIPT_NAME on line 42, which is the Script_name line.
Is SCRIPT_NAME something that only works on Apache and not IIS? I'm currently on IIS?
Also, I get another error as well:
foreach ($leveltwodir[$leveltwo] as $name => $url)
This foreach code gives me this error:
Invalid Arguments supplied for foreach()
But all variables are defined, as such:
$leveltwodir = dirname($_SERVER['PHP_SELF']);
$leveltwo = array("AboutUs" => array("history" => "history.php") );
at first, $leveltwo was defined the same way as above, but with a var before it, so: var $leveltwo = .......blablablabla
But then that used to give me T_VAR errors, so i took the var out, and it no longer gave me T_VAR errors.
Any Ideas why I get these errors?????
Thx