Server-sent Events(SSE) php samples

PHP, JavaScript, AJAX, Comet

19:08:36, by dozo Email , 158 words, 7794 views   Japanese (JP) del.icio.us

Comet is new Ajax and server pushing technology.
If it use then create system of Event Driven Web Application.
It is required Jetty, mod_pubsub, POE, Twisted, Nevow and other higher-level event-driven interface. and PHP isn't compatible.

I try to use Only PHP and create HTTP Streaming System.

* System
  • Web Server: Lighttpd
  • PHP: PHP5.6.1(CGI)



  • [More:]

    * Opera
    Opera9 or higher is supported HTTP Streaming protocol (called Server-sent DOM events).
    It have special tag (event-source) and implant HTML Web Page.
    The event-source tag can add the DOM Event.
    =>Opera Server-sent Events Demo
    =>Opera SSE source

    * Firefox
    Firefox... sorry. Mozilla is multipart streaming support.
    If you use then throw http multipart header (multipart/x-mixed-replace).
    =>Firefox HTTP Multipart Streaming Demo
    =>Firefox Multipart SSE Source

    * Internet Explorer(IE)
    IE don't have streaming system.
    (・-・ ) ・・・
    I think it is forceful but there is no other way.
    So What?
    It use Iframe.
    =>IE HTTP Streaming? Demo
    =>IE HTTP Streaming Source


    Trackback address for this post:

    http://hain.jp/htsrv/trackback.php/95

    Comments, Trackbacks:

    No Comments/Trackbacks for this post yet...

    Leave a comment:

    Your email address will not be displayed on this site.
    Your URL will be displayed.

    Allowed XHTML tags: <p, ul, ol, li, dl, dt, dd, address, blockquote, ins, del, span, bdo, br, em, strong, dfn, code, samp, kdb, var, cite, abbr, acronym, q, sub, sup, tt, i, b, big, small>
    (Line breaks become <br />)
    (Set cookies for name, email and url)
    (Allow users to contact you through a message form (your email will NOT be displayed.))
    This is a captcha-picture. It is used to prevent mass-access by robots.

    Please enter the characters from the image above. (case insensitive)

    powered by b2evolution

    shinobi

    Neighbors
    Relative
    Favorites
    PR

    Archives
    スポンサー

    Latest bookmark
    Search

    Categories

    Who's Online?
    Misc
    Syndicate this blog XML

    Valid XHTML 1.0! Valid CSS! Valid RSS 2.0! Valid Atom 1.0!