<?php
$gamelive=true;
$SERVER_ADDRESS="127.0.0.1";
$SERVER_PORT=5000
$TIMEOUT=3 // Line 5
if($gamelive==true){
$check = pfsockopen ($SERVER_ADDRESS, $SERVER_PORT, &$errno, &$errstr, 5);
if (!$check) {
echo "<font color=\"#FF0000\>offline </font>";
} else {
echo "<font color=\"#00FF00\">online</font>";
fclose($fp);
};
};?>
Problem description:
Parse error: parse error, unexpected T_VARIABLE in /home2/glowner/public_html/JiskGames/coh/server.php on line 5
its basically a PHP script that shows a live game however it gives me that error for that line. Any help?
~>Jiskuha
I've fixed the error, you didn't have semi-colons after the SERVER_PORT and TIMEOUT variables.