Search the Community
Showing results for tags 'com'.
-
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
-
Hi, I've been asked to update some existing PHP to use a DELPHI produced DLL in place of it's existing Data access code. What I've tried so far: Using COM, but I keep getting errors about an Unknown Interface that I have failed to get to the bottom of. Using Delphi4PHP to create a DLL PHP extention, but when using this it caused Apache to crash altogether. Has anyone successfully achieved communication with a Delphi produced DLL from within PHP? Many thanks Andy