Help me out!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Sherif8
Forum Newbie
Posts: 3
Joined: Mon Jan 30, 2012 6:23 am

Help me out!

Post 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??
Sherif8
Forum Newbie
Posts: 3
Joined: Mon Jan 30, 2012 6:23 am

Re: Help me out!

Post by Sherif8 »

Any ideas??!
User avatar
theserve
Forum Newbie
Posts: 24
Joined: Wed Jan 18, 2012 6:35 am
Location: London

Re: Help me out!

Post 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.
Sherif8
Forum Newbie
Posts: 3
Joined: Mon Jan 30, 2012 6:23 am

Re: Help me out!

Post by Sherif8 »

Quite simple!
There's some data sent over an ip
I want to get this data using php
That's all!
Post Reply