News Feed
Sections




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

PHPMaster.com:
Understanding Streams in PHP
June 26, 2013 @ 10:43:45

PHPMaster.com has a new tutorial for those interested in how to work with streams, he base resources behind working with things like files and remote connections.

Streams are resources provided by PHP that we often use transparently, but which can also be very powerful tools. By learning how to harness their power, we can take our applications to a higher level. [...] Every stream has a implementation wrapper which has the additional code necessary to handle the specific protocol or encoding. PHP provides some built-in wrappers and we can easily create and register custom ones. We can even modify or enhance the behavior of wrappers using contexts and filters.

They start by introducing two of the most commonly used streams - "file" and "http" as well as some of the wrappers that can be used to work with them. He also talks about the "php://" stream, a special instance that lets you access things like a temporary memory block and stdout/stdin. He finishes up the tutorial with a look at "contexts" - the parameters that can be used to modify the stream wrapper (like his HTTP example).

0 comments voice your opinion now!
tutorial streams introduction file http internal

Link: http://phpmaster.com/%EF%BB%BFunderstanding-streams-in-php

blog comments powered by Disqus

Similar Posts

Nefarious Designs: Object-Oriented PHP Part 1: Definition

PHPBuilder.com: Use Zend Framework Action Helpers to Reduce PHP Code Redundancy

PHPBuilder.com: Search Google Books with the Zend Framework's Zend_Gdata Component

Sameer Borate's Blog: Grabbing website Favicons using curl and php

Ariz Jacinto's Blog: Compiling PHP with MSSQL Server's Native ODBC Driver for Linux as a PDO Driver


Community Events





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


series install refactor testing unittest framework language release opinion symfony2 developer list threedevsandamaybe code introduction configure interview podcast community laravel

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