I am having a problem with the define only effecting the 1 part of the code. I would appropriate some help. Thanks Joshua
if(isset($_POST['add'])){
$ports = define("PORT", "2467");;
$ws = new Websend("127.0.0.1");
$ws->password = "";
if($ws->connect()){
$ws->doCommandAsConsole("say Hey Pve(".$mcusername.")");
}
$ws->disconnect();
echo end($ports);
$ports = define("PORT", "2466");;
$ws = new Websend("127.0.0.1");
$ws->password = "";
if($ws->connect()){
$ws->doCommandAsConsole("say Hey Hub(".$mcusername.")");
}
$ws->disconnect();
echo end($ports);
}