Writing custom stream filters

Perhaps you used once or twice buil­tin zlib.* or mcrypt.* stream filters. Have you tried making your own stream filter? Maybe you didn’t need to. There are ways to accom­plish busi­ness needs without making hands dirty by not well docu­men­ted stuff like user filters. I need to know that topic like I said before, because of certification :-)

We’re going to make stream filter capa­ble of compu­ting hash check­sum from stream contents on the fly. Rich docu­men­ted code below:

Podobne wpisy:

  1. 2 ways to check stream mimetype
  2. SPL itera­tors with closure context switching
  3. Using stre­ams in multi process environment
  4. Using PHP traits to check class constants values

Dodaj komentarz

Twój adres e-mail nie zostanie opublikowany.

Możesz użyć następujących tagów oraz atrybutów HTML-a: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <p> <pre lang="" line="" escaped=""> <q cite=""> <strike> <strong>