News Feed
Sections




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

Kevin Schroeder's Blog:
You want to do WHAT with PHP? Chapter 4
September 02, 2010 @ 13:49:23

Kevin Schroeder has another new post to his blog today with an excerpt from his "You Want to Do WHAT with PHP?" book. This new post is a section from the fourth chapter looking at stream handling.

Communication is key to building applications now and for the future. While it is not something that I think that everyone should do, I have not seem many applications that make good use of streams in PHP. Streams can be immensely useful in the right situations, but a lot of developers are not really aware of how streams can be used. [...] While I don't think you will end up basing your application around streams it is a really good idea to know how streams work.

The sample code (and description) talk about changing the properties of a stream on the fly. He shows how, with a fgets loop checking the input, he can catch a command from the already running script and change the compression setting on the currently open stream. The compression changes the stream's data from plain text to a binary format as handled by the streams functionality.

1 comment voice your opinion now!
book excerpt kevinschroeder streams


blog comments powered by Disqus

Similar Posts

Kana Yeh's Blog: Review Ivo Jansch’s Guide to Enterprise PHP development

DevShed: Overloading and Object-Oriented Programming with PHP 5

Tobias Schlitt's Blog: Reading recommendation: "Exploring PHP"

Amir Saied's Blog: Book review: "Pro PHP: Patterns, Frameworks, Testing and More" by Kevin McArthur

Zend Developer Zone: Mastering Joomla! 1.5


Community Events





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


wordpress application unittest language bugfix code interview release laravel api series install podcast configure threedevsandamaybe list library introduction community developer

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