News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

BinaryTides.com:
PHP Socket programming tutorial
July 24, 2012 @ 12:14:37

On the BinaryTides.com site there's a recent tutorial showing you how to effectively use sockets in your PHP applications, complete with incoming and outgoing examples.

This is a quick guide/tutorial to learning socket programming in php. Socket programming php is very similar to C. Most functions are similar in names, parameters and output. However unlike C, socket programs written in php would run the same way on any os that has php installed. So the code does not need any platform specific changes (mostly).

They start with the basics - creating a socket, connecting to a server and sending out information over the connection. They also include the code examples showing how to pull in data from the socket. Their example socket is set up to be a simplistic web server, returning data according to the standards for a normal GET request. They make a mini-server out of it, getting to to accept requests on a bound socket.

0 comments voice your opinion now!
socket programming tutorial webserver bind


blog comments powered by Disqus

Similar Posts

PHPWomen.org: One way to handle concurrency in a multi-user web app

Docnet.nu: SSL And PHP Streams - Part 1: You Are Doing It Wrong™

Fabien Potencier's Blog: Create your own framework... on top of the Symfony2 Components (part 5)

Pádraic Brady's Blog: RESTful Web Services with Zend Framework

NETTUTS.com: Creating a Dynamic Poll with jQuery and PHP


Community Events





Don't see your event here?
Let us know!


bugfix code symfony release zendserver introduction interview conference podcast language deployment series voicesoftheelephpant api community framework laravel list threedevsandamaybe tips

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework