PHP Developer's Network : Network Member Forums

Class: Conteg Content Negotiation



  Search   All class groups   Latest entries   Top 10 charts   Newsletter   Blog   Forums   Help FAQ  
  Login   Register  
Recommend this page to a friend! Trackback URL: http://www.phpclasses.org/trackback/browse/package/3738.html
      Classes of Alex Kemp  > 
Conteg Content Negotiation
 >  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   Related links   Files Files  
  • Supplied by:

  • Picture of Alex Kemp
    Name: Alex Kemp <e-mail contact>
    Published packages: 1
    Country: United Kingdom United Kingdom - PHP jobs in United Kingdom
    Home page: http://www.modem-help.com/
    Age: 58
    All time rank: 1694
    Week rank: 1579

    Browse this author's classes

  • Innovation Award:

  • PHP Programming Innovation award nominee
    March 2007
    Number 6
    HTTP is a protocol that provides several means to negotiate the content that is served.

    Negotiating content provides several ways to save bandwidth and server CPU usage by either skip serving cached content or compress the content before serving.

    This class can be use to perform several content negotiating actions, thus simplifying the process of making Web applications more efficient.

    Manuel Lemos
  • Groups:

  • Group folder image
    HTTP protocol clients, headers and cookies
    View top rated classes
  • Detailed description:

  • This class is used to negotiate the current HTTP Request response.

    It issues full Response headers, and can eventually change the response depending on the Request headers sent by the browser (the same actions that web-servers make for static files).

    The class can serve load-balanced compressed output if the browser supports compression and the response content type is worth it, like for instance with HTML, XML, plain text, etc. (Accept-Encoding).

    It can also avoid sending the response content if it is determined that it was previously sent and cached to the browser and has not changed since then (304 Not Modified).

    It can also send a part of the response content if the browser request it (206 Partial content).

    The class will also send Content-Type, Content-Language, Expiry, Cache-Control Response headers.

    It will also report the Referer, browser user agent and operating system.

    The class can also serve custom pages for errors, automatically fixed for serving to Microsoft Internet Explorer browsers (404 Not Found, 410 Gone, and other).

    3 lines of code to implement. All setup parameters have defaults. All defaults may be changed. < 0.002 secs in typical operation. In use on busy websites right now.
  • Freshmeat project:

  • Project record: conteg
    Popularity score: 46.50 (0.08%)
    Popularity rank: 38,916 (PHP Classes: 295)
    Vitality score: 1.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:

  • Link Description
    Author's Home Site
    All pages on this site use Conteg v0.13.1
    Add link image If you know an application of this package, send a message to the author to add a link here.
  • Related links:

  • Link Description
    v0.13 Release Announcement
    Background info at release of v0.13
    v0.12.3 Release Announcement
    Info + changes on release of version v0.12.3
    v0.12.2 Release Announcement
    Info + changes on release of version v0.12.2
    v0.12.1 Release Announcement
    Info + changes on release of version v0.12.1
    First Appearance
    Info + introduction at release of version v0.10
  • Files:

  • File Role Description
    Accessible without login Plain text file Intro.0.13.txt Doc.
    Introduction to Conteg, and to Content Negotiation + Cache-Control.
    Accessible without login Plain text file how-to.0.13.txt Doc.
    Basic implementation using Conteg, including coding examples.
    Accessible without login Plain text file custom-error-howto.0.13.txt Doc.
    Info + brief How-To on creating custom error pages, including coding examples.
    Accessible without login Plain text file php-with-html-plus...otes-howto.0.13.txt Doc.
    Brief How-To on using Conteg to restore Content-Negotiation with disk-files when processed through PHP, plus logging Compression stats with Apache, including coding examples.
    Plain text file Conteg.include.0.13 Class
    Complete include file for the Class (Plain text, Unix LF)
    Download all files: conteg_include.tar.gz conteg_include.zip
    NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.

 
  Advertise on this site   Site map   Statistics   Site tips   Privacy policy   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