Guys! I'm very new to php and want to fetch data sent over an ip using TCP.
Searched a lot, seems there're two ways, sockets and http_get, don't know which is better and how to use them!!
I installed xampp and make some kinda code of filling database from a form on a webpage. but still stuck!!!
Any help plz??
Help me out!
Moderator: General Moderators
Re: Help me out!
I think your gonna need to give a bit more info to get any decent response.
You could look at building a REST or SOAP api.
Sockets allow you to make servers/clients and can be good for bypassing the http protocol if you need fast performance. But if you go the sockets route then you would possibly be better of with C or C++.
A REST api is quite simple and a SOAP api is more complex.
Whatever you use you are likely going to need some form of encoding so consider XML and JSON.
You could look at building a REST or SOAP api.
Sockets allow you to make servers/clients and can be good for bypassing the http protocol if you need fast performance. But if you go the sockets route then you would possibly be better of with C or C++.
A REST api is quite simple and a SOAP api is more complex.
Whatever you use you are likely going to need some form of encoding so consider XML and JSON.
Re: Help me out!
Quite simple!
There's some data sent over an ip
I want to get this data using php
That's all!
There's some data sent over an ip
I want to get this data using php
That's all!