Hey guys. I currently have quite a large site. 100% coded in php and a massive Include folder.
I've always tested the php on a testing server externally... to my host on lycos. Everything works great... all works as expected! But if I try and test the site's php locally, on my wwwroot. I get a load of errors! Here are them all:
Notice: Undefined index: action in d:\inetpub\wwwroot\display.php on line 20
Notice: Undefined index: mid in d:\inetpub\wwwroot\display.php on line 23
Notice: Undefined index: mid in d:\inetpub\wwwroot\display.php on line 26
Notice: Undefined variable: Submit in d:\inetpub\wwwroot\include\scripts\login.php on line 2
Couldn't Connect to MySQL Database
I dont get any of that on my lycos server. It all works perfectly. Do I need to change some settings in my php.ini file? Becuase those errors are not true!
I'll show you the code:
// Script Includes
if($_GET["action"] == "reg"){
include "include/scripts/" . $_GET["action"] . ".php";
} elseif($_GET["mid"]){
include "include/scripts/sessions/email.php";
} elseif($_GET["mid"] == "0" && ($_GET["opt"] == "email" && ($_GET["email"] == "sent"))){
include "include/scripts/sessions/destroy_email.php";
} else {
include "include/scripts/login.php";
}
Do you see anything wrong with them? becuase I certainly dont! Help appreciated. Thx.