Home Page Catalogues Guides Blog
PHP (Hypertext Preprocessor) Info.

PHP (Hypertext Preprocessor) Info.

Dynamic Caching, PHP (Hypertext Preprocessor) Info.

Dynamic Caching

Download Php

Hypertext Preprocessor; an open source, side, HTML embedded scripting language used to create dynamic Web pages. It is compatible with many different types of databases and is now in its 5th incarnation.

Developer Php

Matt Wade examines the basics of regular expressions and put them to use in a practical situation. Caching Variables with PHP [September 23, 2002] Matt Wade teaches you to properly use caching to help reduce the run time of your PHP scripts and load on your server.

Database Php

PHP PHP, or Hypertext Processor, embedded scripting language. Much of its syntax is borrowed from C, specific features thrown in. The goal of the language is to allow web developers to write dynamically generated pages quickly. For rmation, //www.php.

Php Xml Caching happens at all levels, on the hard drive, in RAM, and within the

  • Include cacher.php
  • Instantiate an object of the class
  • Try and get a cached version of the data
  • If a cache does not exist, get the data from the data source and cache it.
  • Do something with the data

File Php Operating systems. It is a performance fundamental of computer science. In 1999,

The Eclipse Foundation has released the 1.0 of the Eclipse PHP Development Tools (PDT) project. Eclipse PDT is a set of tools and frameworks that enhance the productivity of developers using PHP, a popular, purpose dynamic language that is especially suited for development of web applications and web services. This is the first Eclipse project that targets the large PHP developer community. Check out the press release for rmation.

Php Upgrading A wave of caching products swept the Internet to serve graphics faster. These

Php Forum Products drove the stock of companies like Akamai Technologies, Inc., and

Flash Php Inktomi Corp. into the sky. However, they were focused on caching graphics and

Ajax Php Streaming media.

Dream Foundation Php Weaver Now a new wave of caching products are emerging that cache dynamic Web pages.

Php Proxy Dynamic Web pages are those that are created between the request for the page

Nuke Php Theme And the response back to the browser. Usually they are written in a scripting

Php Security Language like perl, CGI, VBScript, or Cold Fusion. In the past, these pages were

Editor Php Used to provide personalization and e-commerce transactions. However, as the Web

Hosting Mysql Php Web Evolves, dynamic pages are being used to generate content-like promotions for

4th Development Edition Mysql The front page, changing indexes and mainstream content. Because these types of

Php Web Pages are being used for Web-site maintenance and not user interactivity, they

Development Mysql Php Web Can be cached for short periods of time.

Index Php Dynamic caching's time has come, Post Point Software launched a released of

Download Php XCache in May, Microsoft plans to release ASP+ and Acceleration Server next

Developer Php Year, Cold Fusion released SPECTRE at the end of 1999, and Vignette's Story

Database Php Server lists caching as one of their main features. However, if you are writing

Php Xml Your Web site in Active Server Pages (ASPs), it was not until XCache that you

File Php Could implement partial page caching (the ability to cache just a portion of the

Php Upgrading Page, leaving the rest dynamic). This ability allows you to incorporate

Php Forum Personalization without losing performance.

Flash Php This article will cover three ways to cache your dynamic Web site written in

Ajax Php ASPs, including Microsoft Acceleration Server, Microsoft's ASP+, and Post Point

Dream Foundation Php Weaver Software's XCache, and offer the pros and cons of using each product. If you are

Php Proxy Looking for speed and scalability for the Web site, read on.

Nuke Php Theme Microsoft Security and Internet Acceleration

Php Security Server (ISA)

Editor Php Microsoft's Security and Internet Acceleration Server, a.k.a. ISA (<a

Hosting Mysql Php Web Href="http://www.microsoft.com/isaserver/">

4th Development Edition Mysql Http://www.microsoft.com/isaserver</a> ), is the third version of their

Php Web Reverse proxy server (still in beta). The ISA server is typical of reverse proxy

Development Mysql Php Web Servers and is somewhat advanced in its handling of URLs with question marks

Index Php (dynamic pages). While most reverse proxy servers don't recognize query strings

Download Php As unique identifiers to the pages, ISA does cache each page with unique query

Developer Php Strings as separate pages.

Database Php What is a Reverse Proxy Server?

Php Xml The proxy server sits between the Internet and the Web site and handles all

File Php Traffic before it can reach the Web server. A reverse proxy server intercepts

Php Upgrading Requests to the Web server and instead responds to the request out of a store of

Php Forum Cached pages. This method improves the performance by reducing the amount of

Flash Php Pages actually created "fresh" by the Web server.

Ajax Php Reverse proxy servers cache pages based on HTTP header tags that are returned

Dream Foundation Php Weaver From the dynamic pages. The four most important are:

Php Proxy Last-Modified Tells the proxy when to change the page. Expires

Nuke Php Theme Tells the proxy when to drop the page. Cache-Control

Php Security Tells the proxy if the page should be cached. Pragma. Tells the

Editor Php Proxy if the page should be cached.

Hosting Mysql Php Web For example, by default all Active Server Pages return "Cache-control:

4th Development Edition Mysql Private." Which means that none of your Active Server Pages will be cached with

Php Web Microsoft's Acceleration Server.

Development Mysql Php Web Advantages

Index Php The ISA server runs on a separate machine that distributes the load from the

Download Php Web server to the Acceleration Server. The ISA server also serves everything

Developer Php From RAM, making it extremely quick.

Database Php Disadvantages

Php Xml With the ISA server you need to recode your Active Server Pages in order to

File Php Cache them -- Active Server Pages default HTTP response headers will tell the

Php Upgrading ISA server not to cache its pages. Because the ISA server sits on a separate

Php Forum Machine, none of the cached requests make it to the Internet Information

Flash Php Server's log files. This means that even though those pages are being requested,

Ajax Php There is no record of it on the Web server, so your traffic numbers are not

Dream Foundation Php Weaver Accurate when running ISA.

Php Proxy Example

Nuke Php Theme When you want to change your cache in ISA, you will need to change to code

Php Security That controls the ASP page. In order to turn CacheControl off, you will need to

Editor Php Reprogram your ASP pages by adding:

Hosting Mysql Php Web <%

4th Development Edition Mysql Response.AddHeader "CacheControl","public"

Php Web %>

Development Mysql Php Web You also need to tell the proxy when the page expires so that it can refresh

Index Php The cache appropriately. Add this line to set the cache period to 1 hour:

Download Php <%

Developer Php Response.Expires = 60

Database Php %>

Php Xml Microsoft's Security and Internet Acceleration Server can be used for caching

File Php Web pages if you don't mind recoding your site, however other caching systems

Php Upgrading Handle dynamic pages better, such as Microsoft's ASP+ and Post Point's XCache.

Php Forum Active Server Pages Plus

Flash Php ASP+ is an extension of Microsoft's Active Server Pages. This completely new

Ajax Php Approach to Active Server Pages is scheduled to be release in early 2001.

Dream Foundation Php Weaver Basically, ASP+ is a set of tools that extends the Microsoft Internet

Php Proxy Information Services (IIS) server. However, unlike other ASP upgrade paths, you

Nuke Php Theme Need to recode your current ASP pages to take advantage of Microsoft's new

Php Security "managed code" scripting languages and ASP+ features. If you do recode your Web

Editor Php Site, you can add a directive to each page to cache it.

Hosting Mysql Php Web ASP+ provides two types of page caching: one called output caching that

4th Development Edition Mysql Caches a whole page for a period of time, and another called partial page

Php Web Caching that caches just a portion of the page or several portions. Both require

Development Mysql Php Web You to recode each page you want to cache adding the correct directive.

Index Php The concept of partial page caching is a very powerful tool, since pieces of

Download Php The page might stay the same no matter what user is viewing the page and other

Developer Php Pieces might be different on a per-user basis. Partial page caching allows you

Database Php To put your most expensive routines in a long-term cache and leave your banner

Php Xml Rotation and personalization pieces of the Web site completely dynamic.

File Php Advantages

Php Upgrading ASP+ provides both output page caching and partial page caching for free. It

Php Forum Allows you to divide your cache by the browser's language and browser type. This

Flash Php Gives you a bigger cache, however if you are creating unique pages by language

Ajax Php Or browser type, this is a big benefit.

Dream Foundation Php Weaver Disadvantages

Php Proxy ASP+ requires that you recode your ASP pages in order to take advantage of

Nuke Php Theme The new ASP+ features. Microsoft also requires that you add directives to the

Php Security Top of the page in order to cache. ASP+ is in beta and will launched in early

Editor Php 2001.

Hosting Mysql Php Web Example

4th Development Edition Mysql The following output caching directive is applied to the top of the page:

Php Web <%@ OutputCache Duration="60" %>

Development Mysql Php Web Because ASP+ is still in beta, Microsoft has not yet released details on the

Index Php Syntax for the partial page cache directive.

Download Php XCache

Developer Php XCache is a third-party tool from Post Point Software () that

Database Php Allows you to cache Active Server Pages in IIS 4.0 or IIS 5.0. Unlike ASP+, it

Php Xml Is currently available. It was released in May 2000. Like ASP+, XCache has the

File Php Ability to perform output caching and partial page caching -- called Active

Php Upgrading Caching.

Php Forum XCache installs on your Web server, handling requests before they reach the

Flash Php Web server. In this regard it is much like a reverse proxy server. However,

Ajax Php Unlike a reverse proxy server, XCache makes sure all requests that are served

Dream Foundation Php Weaver From the cache are reflected in your log files. This can be a problem with other

Php Proxy Caching solutions that are not on the box -- when requests are served from the

Nuke Php Theme Cache, hits are not logged. This makes analyzing your Web site traffic

Php Security Impossible.

Editor Php To start using XCache, install it on your Web server and start it from the

Hosting Mysql Php Web MMC Snapin that is provided. You can pick and choose those pages you want to

4th Development Edition Mysql Cache, leaving pages that change on a per-user basis uncacheable.

Php Web Advantages

Development Mysql Php Web XCache doesn't require recoding to do output caching and provides partial

Index Php Page caching. Requests severed from the cache are logged to the Web server log

Download Php Files. XCache is currently available.

Developer Php Disadvantages

Database Php XCache uses a disk cache to hold files instead of a RAM cache like the ISA

Php Xml Server.

File Php Example If you want to implement Active Caching (partial

Php Upgrading Page caching), just turn it on from the Web site properties page. Once you have

Php Forum It enabled, you can choose which section of the page you don't want to cache by

Flash Php Changing the delimiters from <% %> to <$ $>. XCache will then cache

Ajax Php Everything in <% %> and leave everything in <$ $> to execute when

Dream Foundation Php Weaver The user requests the page.

Php Proxy XCache also allows you to include pages when the file is cached by using the

Nuke Php Theme Standard #include or include pages when the page is requested using #dynamic.

Php Security For example, changing:

Editor Php <!-- #include virtual="/dir/include.asp"-->

Hosting Mysql Php Web To

4th Development Edition Mysql <!-- #dynamic virtual="/dir/include.asp"-->

Php Web will make all the code in include.asp execute when the

Development Mysql Php Web Page is requested. Includes left in

Index Php <!-- #include virtual="/dir/include.asp"-->

Download Php will execute when the page is cached.

Developer Php Performance Gains

Database Php You can see significant performance gains using ISA, ASP+, or XCache,

Php Xml Depending on the scenario. Imagine you have hundreds of graphics on your Web

File Php Server that are taking the majority of the servers processing time and

Php Upgrading Bandwidth. You could cache these with the ISA server, reducing the load on the

Php Forum Web server and allowing it to process more ASP pages. At the same time the ISA

Flash Php Server would load the graphics into memory, serving them faster than the Web

Ajax Php Server could from the hard drive.

Dream Foundation Php Weaver Now image you have a product catalog in your SQL Server database of 5,000

Php Proxy Products. Typically you would have a category page that lists products in that

Nuke Php Theme Category and a detail page that displays all the information about the product.

Php Security These pages would be driven directly from the database, allowing you to change

Editor Php And add products easily. Now imagine that certain products are not changed for

Hosting Mysql Php Web Months. This means that their detail page has not changed. However, every time

4th Development Edition Mysql That page is requested, code has to be executed and SQL Server calls have to be

Php Web Made to see exactly the same page that was displayed to the last user..

Development Mysql Php Web In this scenario, caching is the solution. You would cache your detail pages,

Index Php And all requests would come out of cache, instead of executing. This would

Download Php Reduce the calls to the SQL Server and reduce the CPU load on the Web server.

Developer Php Pages would return faster and the Web server would be able to serve more pages

Database Php Since it has less work to do.

Php Xml Suppose on the same Web site, you have a shopping basket that allows each

File Php User to purchase those products in their shopping cart. In this scenario each

Php Upgrading User would see a different version of the page since they would be purchasing

Php Forum Different products. You would not want to cache these pages since they change

Flash Php For every user and the pages need to interact with the database.

Ajax Php However, on the site's home page you have specialty promotions that are based

Dream Foundation Php Weaver On information you have tracked about each user. Along with these promotions

Php Proxy There is a list of all the categories. This page changes on a per-user basis,

Nuke Php Theme However most of the information is the same for all users. This is a perfect

Php Security Scenario for partial page caching. You could cache the category list, indexes,

Editor Php And navigation, essentially everything but the promotions -- and this would

Hosting Mysql Php Web Leave the promotions dynamic.

4th Development Edition Mysql Summary

Php Web There is a new wave of caching products hitting the market that allow

Development Mysql Php Web Interactive pages to benefit from Web page caching. Three of the front-runners

Index Php Are Post Point Software's XCache, Microsoft's ASP+, and Microsoft's Security and

Download Php Acceleration Server. Take a close look at your Web site and determine if you

Developer Php Could benefit from dynamic caching.

Database Php About the Author

Php Xml Wayne Berry is the president and CEO of Post Point Software, as a former

File Php Microsoft design engineer and one of the top Active Server Page developers in

Php Upgrading The country, Berry's expertise includes software design, development, marketing

Php Forum And online business. Berry served as a Software Development Engineer at

Flash Php Microsoft and as Director of Development at Freeshop prior to Post Point

Ajax Php Software.

Dream Foundation Php Weaver A popular speaker, Berry has been invited to speak to international ASP

Php Proxy Developers conferences, BackOffice Conference and Internet World. He has

Nuke Php Theme Authored several technical books, including ActiveX Unleashed Programming,

Php Security Windows Registry Guide, and Special Edition Using Microsoft Internet Information

Editor Php Server 4.0. , as well as many articles in print and online trade publications.

Hosting Mysql Php Web Berry holds a B.S. in Computer Science from Western Washington University.

4th Development Edition Mysql [Top]

Php Web [Top]

Development Mysql Php Web [Top]

Index Php Mailing List
Want to receive

Download Php Email when the next article is published? Just to sign

Developer Php Up.

[ Comment, Edit or Article Submission ]

Share this:

Add To Del.icio.us Add To Reddit Add To Yahoo MyWeb Add To Google Bookmarks Add To Furl Fav This With Technorati Add To Newsvine Add To Bloglines Add To Ask Add To Windows Live Add To Slashdot Stumble This Digg This

More about:

Dec January 2009 Feb
Sun Mon Tue Wed Thu Fri Sat
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

PHP (Hypertext Preprocessor) Info. Blog on Technorati Related Blog of PHP (Hypertext Preprocessor) Info. on Sphere
 
Copyright © 2008 www.smbar.com. Blog | Sitemap | Advertise | Privacy | Disclaimer | Contact | Links