Quantcast
Channel: PHP Freaks: PHP Help
Viewing all articles
Browse latest Browse all 13200

$objComport not working

$
0
0

Hi, I'm wondering if someone could help please.

I've been trawling the net and looking through forums. I'm having trouble with 

 

$objComport    = new COM ( "AxSerial.ComPort" );

 

I get this responce

 

Fatal error: Uncaught exception 'com_exception' with message 'Failed to create COM object `AxSerial.Comport': Invalid syntax ' in E:\ServerTest\htmldocs\Comport.php:3 Stack trace: #0 E:\ServerTest\htmldocs\Comport.php(3): com->com('AxSerial.Compor...') #1 {main} thrown in E:\ServerTest\htmldocs\Comport.php on line 3

 

Basically what I'm trying to do is open a com port and send a string "JOBS" This instruction tells my serial device what to do. If there is a better way of doing this I would really appreciate it.

 

Thanks again

 

Nev


Viewing all articles
Browse latest Browse all 13200

Latest Images

Trending Articles



Latest Images