PHP Streams: Lucky Dip

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

2 comments

Comments 1 - 2 of 2 previous next Post a comment

  • + wezfurlong Wez Furlong 2 years ago
    in response to guest3a83ae, the stream_eof() method is something you must implement for user wrappers otherwise the feof() function won’t operate correctly on streams created from that wrapper. My personal feeling is that the world doesn’t need feof(), but I have to live with the fact that the world uses feof() anyway, so this method is therefore necessary to make things work for them.
  • + guest3a83ae guest3a83ae 2 years ago
    Wez, correct me if I’m wrong but you talked about feof() having 'no place' in streams and thus you should use stream_select() and fread() to determine if the socket is closed rather than feof(). Yet on slide 43 you have:



    function stream_eof(){

    return feof($this->fp);

    }



    Is that due to brevity or is this just an older presentation?



    All in all, a good slide show.
Post a comment
Embed Video
Edit your comment Cancel

6 Favorites & 1 Group

PHP Streams: Lucky Dip - Presentation Transcript

  1. PHP Streams a Lucky Dip Wez Furlong
  2. About the author • PHP Core Developer since 2001 • Author of the Streams layer • I hold the title “King” of PECL • Author of most of PDO and its drivers • Day-job is developing the fastest MTA on Earth
  3. Lucky Dip!? • Streams is a big topic area • Every uses them • A lot of people misuse them • tid-bits from basic to advanced level
  4. What is a stream? • View of some kind of data • Presented in chunks • Readable • Writable • Sometimes seekable
  5. File based streams • Most common (include/require) • Represent data held in a filesystem

+ Wez FurlongWez Furlong, 2 years ago

custom

5125 views, 6 favs, 14 embeds more stats

A number of tid-bits of streams information of vary more

More info about this document

© All Rights Reserved

Go to text version

  • Total Views 5125
    • 4281 on SlideShare
    • 844 from embeds
  • Comments 2
  • Favorites 6
  • Downloads 91
Most viewed embeds
  • 661 views on http://netevil.org
  • 106 views on http://www.planet-php.net
  • 25 views on http://www.planet-php.org
  • 20 views on http://www.blogdopedro.net
  • 10 views on http://planet-php.org

more

All embeds
  • 661 views on http://netevil.org
  • 106 views on http://www.planet-php.net
  • 25 views on http://www.planet-php.org
  • 20 views on http://www.blogdopedro.net
  • 10 views on http://planet-php.org
  • 10 views on http://www.netevil.org
  • 3 views on http://www.phpeye.com
  • 2 views on http://static.slideshare.net
  • 2 views on http://lj-toys.com
  • 1 views on http://planet-php.net
  • 1 views on http://www.golem.de
  • 1 views on http://phpeye.com
  • 1 views on http://74.125.95.104
  • 1 views on http://209.85.175.104

less

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

Cancel
File a copyright complaint
Having problems? Go to our helpdesk?

Categories

Groups / Events