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") );
Any Ideas why I get these errors?????
Thx