Receive TCP data packets in php
Posted: Sat Jun 14, 2008 11:32 am
Hi,
I am new in this forum and php as well. I am familiar with (php?getdata=data) type format, but don't know how it connects in TCP/IP layer to receive tcp packets.
My embedded device sends data (in fixe format) using TCP protocol. I can only set server IP address, port number and TCP or UDP. I want to receive that data in my web server and store in mysql database.
Now my questions are -
1. Is it possible to receive data using php? if it is then how can I receive that data using php?
2. Do I need static IP to receive data? Or I can do it using shared hosting? How?
3. Is it possible to receive tcp data packet using port 80? how?
Please advise me what to do to receive TCP data packets using php. If possible then please refer some examples of similar types of data send/receive php codes.
Thanks in advance.
I am new in this forum and php as well. I am familiar with (php?getdata=data) type format, but don't know how it connects in TCP/IP layer to receive tcp packets.
My embedded device sends data (in fixe format) using TCP protocol. I can only set server IP address, port number and TCP or UDP. I want to receive that data in my web server and store in mysql database.
Now my questions are -
1. Is it possible to receive data using php? if it is then how can I receive that data using php?
2. Do I need static IP to receive data? Or I can do it using shared hosting? How?
3. Is it possible to receive tcp data packet using port 80? how?
Please advise me what to do to receive TCP data packets using php. If possible then please refer some examples of similar types of data send/receive php codes.
Thanks in advance.