How would I add a loop to this PHP coding? I want to make it so that after ‘I AM THOMAS’ it will loopback to ‘HELLO WORLD’ and repeat the same cycle infinitely.
[QUOTE]How do I make a loop for PHP? Is this right?
<?PHP require ("config.php"); exec("mode com3: BAUD=9600 PARITY=n DATA=8 STOP=1 to=off dtr=off rts=off"); $fp =fopen("com3", "w"); while (true){ fwrite($fp,"HELLO WORLD"); fwrite($fp,"I AM THOMAS"); sleep(5); } fclose($fp); ?>[/QUOTE]