0
PHP Streams
  a Lucky Dip
       Wez Furlong
 <wez></wez>@messagesystems.com>
About the author
 •   PHP Core Developer since 2001

 •   Author of the Streams layer

 •   I hold the title “King” of PEC...
Lucky Dip!?
 •   Streams is a big topic area

 •   Every uses them

 •   A lot of people misuse them

 •   tid-bits from b...
What is a stream?
 •   View of some kind of data

 •   Presented in chunks

 •   Readable

 •   Writable

 •   Sometimes s...
File based streams
 •   Most common (include/require)

 •   Represent data held in a filesystem
PHP Streams: Lucky Dip
PHP Streams: Lucky Dip
PHP Streams: Lucky Dip
PHP Streams: Lucky Dip
PHP Streams: Lucky Dip
PHP Streams: Lucky Dip
PHP Streams: Lucky Dip
PHP Streams: Lucky Dip
PHP Streams: Lucky Dip
PHP Streams: Lucky Dip
PHP Streams: Lucky Dip
PHP Streams: Lucky Dip
PHP Streams: Lucky Dip
PHP Streams: Lucky Dip
PHP Streams: Lucky Dip
PHP Streams: Lucky Dip
PHP Streams: Lucky Dip
PHP Streams: Lucky Dip
PHP Streams: Lucky Dip
PHP Streams: Lucky Dip
PHP Streams: Lucky Dip
PHP Streams: Lucky Dip
PHP Streams: Lucky Dip
PHP Streams: Lucky Dip
PHP Streams: Lucky Dip
PHP Streams: Lucky Dip
PHP Streams: Lucky Dip
PHP Streams: Lucky Dip
PHP Streams: Lucky Dip
PHP Streams: Lucky Dip
PHP Streams: Lucky Dip
PHP Streams: Lucky Dip
PHP Streams: Lucky Dip
PHP Streams: Lucky Dip
PHP Streams: Lucky Dip
PHP Streams: Lucky Dip
PHP Streams: Lucky Dip
PHP Streams: Lucky Dip
PHP Streams: Lucky Dip
PHP Streams: Lucky Dip
PHP Streams: Lucky Dip
Upcoming SlideShare
Loading in...5
×

PHP Streams: Lucky Dip

8,608

Published on

A number of tid-bits of streams information of varying levels of difficulty

Published in: Technology
1 Comment
11 Likes
Statistics
Notes
  • 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.
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Views
Total Views
8,608
On Slideshare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
128
Comments
1
Likes
11
Embeds 0
No embeds

No notes for slide

Transcript of "PHP Streams: Lucky Dip"

  1. 1. PHP Streams a Lucky Dip Wez Furlong <wez></wez>@messagesystems.com>
  2. 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. 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. 4. What is a stream? • View of some kind of data • Presented in chunks • Readable • Writable • Sometimes seekable
  5. 5. File based streams • Most common (include/require) • Represent data held in a filesystem
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×