Hi, first off I have no experience with php. I have a Counterstrike HL/1 gameserver that I which to query with a php script, determine if its on or off, then display the appropriate message(ON/OFF), or image. Like so; http://www.game-monitor.com/server-stat.php?ip=63.211.221.143:27015&style=0&text=000000&link=0000FF&back=F2F6FC&border=8F9DB4&body= I'm pretty sure the server cannot be queried using TCP, it has to be UDP. This is what I've got so far and am receiving this error. Please help if you can. Parse error: syntax error, unexpected ',', expecting ')' in /dir/dir/dir/status3.php on line 6 [code]<?php $host = "63.211.221.143"; $PORT = "27015"; $connect = fsockopen ("UDP: //$host", $port, $errno, $errstr, 2); socket_set_timeout ($connect, 2); fwrite (, "\ xFF \ xFF \ xFF \ xFFping \ x00" $connect); fread ($connect, 4); $ping = fread (, 1 $connect); fclose ($connect); if ($ping == "j") { print ("HLDS IS ON<br>"); } ELSE { print ("HLDS IS OFF<br>"); } ?>[/code]