[Solved] Pinging a Minecraft Server in PHP: Small Error [closed]


Your echo that starts right after the $ping = round(... line is not terminated before the if statement … you can’t just drop an if in the middle of an echo

The line that reads:

<td>$host:$ip</td>

Should be:

<td>$host:$ip</td>";

Then you need to do another echo after the if statement …

There seem to be a myriad of other issues in that code that will prevent you from doing what you want …

As stated in the comments, proper code formatting will go a long way toward solving these errors … use an editor that colorizes code and errors like this will jump out at you …

3

solved Pinging a Minecraft Server in PHP: Small Error [closed]