Jump to content

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

 

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.