PHP Classes
Icontem

Class: HV HTTP Multipart


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend!
      Classes of Herman Veluwenkamp  >  HV HTTP Multipart  >  Download  >  Support forum Support forum  >  RSS 1.0 feed RSS 2.0 feed Latest changes  >  Stumble It! Stumble It!  >  Bookmark in del.icio.us Bookmark in del.icio.us  
  Supplied by   Group folder image Groups   Detailed description   Freshmeat project  
  Rate classes User ratings   Applications   Files Files  
  • Supplied by:

    Picture of Herman Veluwenkamp
    Name: Herman Veluwenkamp <e-mail contact>
    Published packages: 11
    Country: New Zealand New Zealand - PHP jobs in New Zealand
    Home page: ???
    Age: ???
    All time rank: 8
    Week rank: 132

    Browse this author's classes

  • Innovation Award:

    PHP Programming Innovation award nominee
    June 2004
    Number 7
    The HTTP protocol can be used to serve content in ways that are not very well known. One of such ways is to use MIME multipart content types.

    The multipart/x-mixed-replace content type allows to serve a sequence of distinct content objects that replace each other within the same HTTP request. This means that the same page can display different content parts that appear successively.

    Since each part may be served with wait intervals that are defined by the script that serves the page, this can be used for pushing new content once it is made available on the server, thus without having the user or the browse to issue a new request.

    Despite it is a feature that is not supported by all browsers, it can be used for event driven applications that depend on events that may occur on the server side besides others that occur on the client side.

    This class provides a solution for creating these multipart replacement content type parts without having to understand too much about the technical details of the protocol.

    It comes with illustrating examples that show how to generate server based animations or replace content after a given period of time producing interesting slideshow effects.

    Manuel Lemos
  • Groups:

    Group folder image HTTP HTTP protocol clients, headers and cookies View top rated classes
    Group folder image Video Movies and video data generation and manipulation View top rated classes
  • Detailed description:

    This class is meant to compose and serve multiple pages that replace each other in a single HTTP request.

    It uses the MIME content type multipart/x-mixed-replace content type to keep the connection open. Only works in browsers that support that content type, obviously. This does not include MS Explorer.

    It can send multiple pages that replace each other even with different content types. It can iterate over a set of pages that are deliver one after the other waiting a given interval period.

    It can be used to show the progress of lengthy tasks or exhibit animations and slideshows.
  • Freshmeat project:

    Project record: hv_http_multipart
    Popularity score: 79.32 (0.13%)
    Popularity rank: 31,380 (PHP Classes: 227)
    Vitality score: 0.00 (0.00%)
    Rating: Not yet rated Please rate this class in Freshmeat
  • User ratings:

    There are not enough user ratings to display for this class.
  • Applications that use this class:

    No application links were specified for this class.
    Add link image If you know an application of this package, send a message to the author to add a link here.
  • Files:

    File Role Description
    Plain text file demo_iteration.php Example Demo 3 - poor man's animation
    Plain text file demo_processing.php Example Demo 1 - for pages that take a long time to process.
    Plain text file demo_xul.php Example Demo 2 - two pages with different content types
    Plain text file HV_HttpMultipart.php Class Main class
    HTML file page_1.html Data Page 1 for iteration
    HTML file page_2.html Data Page 2 for iteration
    HTML file page_3.html Data Page 3 for iteration
    HTML file page_4.html Data Page 4 for iteration
    HTML file page_5.html Data Page 5 for iteration
    HTML file page_6.html Data Page 6 for iteration
    HTML file page_7.html Data Page 7 for iteration
    Plain text file page_finished.xul Data Page that displays 'Finished' in XUL markup
    HTML file page_ok.html Data Page that displays 'OK'
    HTML file page_processing.html Data Page that displays 'Processing'
    Download all files: hv_httpmultipart.tar.gz hv_httpmultipart.zip
    NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2008 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products