I'd like to develop a little interface in PHP to command PAR fixtures from a web server. After reading many topics in this forum I saw that I can use socket to send command directly to FS.
I try the command blackout and it works put not for the command channel 1 @ 255

Code: Select all
$socket = @fsockopen($IP,$PORT,$codeErreur, $msgErreur);
fputs($socket,"FSOC002255"); // works correctly
fputs($socket,"FSOC320255"); // send "command 1"
fputs($socket,"FSOC332255"); // send "command @"
fputs($socket,"FSOC321255"); // send "command 2"
fputs($socket,"FSOC324255"); // send "command 5"
fputs($socket,"FSOC324255"); // send "command 5"
fputs($socket,"FSOC337255"); // send "command enter"
fsockclose($socket);
Thanks in advance for you help.