Page 1 of 1

Help me out!

Posted: Mon Jan 30, 2012 6:40 am
by Sherif8
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??

Re: Help me out!

Posted: Tue Jan 31, 2012 8:09 am
by Sherif8
Any ideas??!

Re: Help me out!

Posted: Tue Jan 31, 2012 10:09 am
by theserve
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.

Re: Help me out!

Posted: Thu Feb 02, 2012 5:59 am
by Sherif8
Quite simple!
There's some data sent over an ip
I want to get this data using php
That's all!