php - minecraft server query not echoing motd -


I downloaded the code from here:

I echo the server's MOTD with this code Want to:

  & lt ;? Php include_once 'get.php'; // class $ position = new MinecraftServerStatus (); // call $ response = $ position-> Millstatus ('localhost'); // function $ statusTxt = Call "offline"; $ Version = "N / A"; $ Ping = "n / a"; $ Players = "0/0"; $ Host = "n / a"; $ Motd = "N / A"; $ Version = "N / A"; If ($ response) {$ statusTxt = "online"; $ Players = $ response ['player'] "/" $ response ['maxplayers']; $ Version = $ response ['version']; $ Ping = $ response ['ping']; $ Host = $ response ['hostname']; $ Motd = $ response ['motd']; $ Version = $ response ['version']; }? & Gt; & Lt; div id = "banner" & gt; & Lt; Div id = "status" & gt; & Lt ;? Php echo $ statsetext; ? & Gt; & Lt; / Div & gt; & Lt; Div id = "version" & gt; & Lt ;? php echo $ version; ? & Gt; & Lt; / Div & gt; & Lt; Div id = "ping" & gt; & Lt ;? Php echo $ ping; ? & Gt; & Lt; / Div & gt; & Lt; Div id = "player" & gt; & Lt ;? php echo $ players; ? & Gt; & Lt; / Div & gt; & Lt; Div id = "host" & gt; & Lt ;? Php echo $ host; ? & Gt; & Lt; / Div & gt; & Lt; Div id = "motd" & gt; & Lt ;? Php echo $ motd; Echo $ version; ? & Gt; & Lt; / Div & gt; & Lt; / Div & gt;   

But that returns:

  Online 103 3/100 localhost 1.7.5   

How do I echo the server K MOTD?

I only recommend using auto bookkit, this is very easy for my purchasing server And MOTD works 100% of the time.

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -