Search the Community
Showing results for tags 'port'.
-
Hi! I'm trying to make an button that when it's pressed sends an http post to my home server. But my home server is runing on port 84 and i think that i'm not being able to send the post correctly because of this port. any help? my code now is this: $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://homeserver.net:84/?device=35"); curl_setopt($ch, CURLOPT_HEADER, 0); curl_exec($ch); curl_close($ch); The way I have the URL is correct? thanks!
-
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
-
I need to ask my host to open a port for outbound connections via cURL. THey are telling me that they cannot open inbound ports for my hosting package type. I have been told that curl or file_get_contents makes an outbound connection. I can't seem to verify this through the docs unless I am missing something. Can anyone verify before I go back to my host and make a fool of myself?