Hi,

how can I write to a COM-Port on OS/2 using PHP 4.3.0 with Apache 2.0.44?

With

$fp = fopen ("COM1", "w+");
$string = chr($OutCmd) . chr($Platine) . chr($OutData) . chr($OutPruef);
fputs ($fp, $string );
fclose ($fp);

it seems not to work ($fp returns "Resource id #2"), and

$fp = fopen ("COM1:", "w+");
...
..
.

creates an error: "Warning: fopen(COM1:) [function.fopen]: failed to create stream: No such file or directory in x:\htdocs\test.php on line 3" :-(

The same functionality with Rexx is working!

Thanks a lot,

Thorolf


-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to