News Feed
Sections




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

Elizabeth Smith's Blog:
Php User Streams - why doesn't anyone use them?
May 07, 2007 @ 08:04:00

In a new post today, Elizabeth Smith takes a look at one of the lesser used (well, overall) features that PHP has to offer these days - PHP user streams.

PHP user streams are amazing - they're powerful, fun, and make things like a templating system with filters and multiple back ends quick and easy.

Here's a little "test script" that shows you how to implement contexts for your streams. What are contexts? They're resources that hold additional information. Built in php streams, such as the ftp streams, already have contexts you can set. But they're also great to use in your own user land streams.

In the test script, she shows how to open a stream to a few different resources (including passing parameters and user information), grabbing the contents of each.

1 comment voice your opinion now!
user stream example path fopen user stream example path fopen


blog comments powered by Disqus

Similar Posts

PHPRiot.com: Reducing a Map Path Using Douglas-Peucker Algorithm

Web Builder Zone: Real-life closures examples...for real

Juozas Kaziukenas' Blog: Service Layer in Web applications

C7Y: Reflections on Designing an IRC Bot in PHP, Part 2

KillerPHP.com: Zend Framework: Using View Helpers to Build Rich, Scalable, Controls


Community Events

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


laravel language library interview configure framework symfony2 conference introduction api application example podcast opinion performance series php7 install release community

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