PHP Streams: Lucky Dip

  • 8,422 views
Uploaded on

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

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

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
  • 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.
    Are you sure you want to
    Your message goes here
No Downloads

Views

Total Views
8,422
On Slideshare
0
From Embeds
0
Number of Embeds
3

Actions

Shares
Downloads
125
Comments
1
Likes
8

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

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