Your SlideShare is downloading. ×
PHP Streams: Lucky Dip
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Saving this for later?

Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime - even offline.

Text the download link to your phone

Standard text messaging rates apply

PHP Streams: Lucky Dip

8,508
views

Published 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

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,508
On Slideshare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
126
Comments
1
Likes
11
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 @messagesystems.com>
  • 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