Jump to content

Connect to Device and send string


aaronking

Recommended Posts

hello,

 

Does anyone know how to connect to a device eg. 203.xx.xxx.xxx with the port number 80 and once connected send a string to it using php?

 

I have tryed 'fsockopen' but i don't know how to send stuff using it..

 

can someone give me a working example or help me out..

 

I am doing this for the first time.

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/55944-connect-to-device-and-send-string/
Share on other sites

The device is ment to be connected via a network using TCP/IP (winsock) however I have opened telnet and connected to it though that and it connects and works.

 

however doing it in php I have no idea how to send data to the device.

 

---  ---  ---  ---  ---  ---

 

I have used Visual Basic 6.0 to connect to this device using the winsock control and sent the data to it..

 

Code:

Winsock1.sendData "123"

 

and it works but i want to do the same but in php

 

---  ---  ---  ---  ---  ---

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.