SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: Server load

  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2001
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Server load

    Okay folks I have a server load one:

    Let's say you have a heavy traffic on your site. Is it better to load 10 different pages separately (meaning 10 different URLs) or is it better to load them on the fly using one single PHP file (one and the same URL) which is a script (and "makes" this 10 different pages). This sicript does not use any database to create the pages, just flat files. Would using only one file (script) decrease the server load by putting that script file in the memory and it would by then always be loaded from the memory and no browsing on hard disk would be necessary next time?? Or would accessing only one file all the time cause the server to gag somehow??

  2. #2
    SitePoint Columnist Skunk's Avatar
    Join Date
    Jan 2001
    Location
    Lawrence, Kansas
    Posts
    2,066
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't think PHP caches scripts in memory between executions, so I don't see that you would have a performance increase. In fact, I would have thought that the performance hit involved in executing a PHP script using the PHP interpreter would make that slower than just serving up a single flat HTML file from disk for each hit.

  3. #3
    Serial Publisher silver trophy aspen's Avatar
    Join Date
    Aug 1999
    Location
    East Lansing, MI USA
    Posts
    12,937
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you can cache PHP pages using phpcache

    http://www.0x00.org/php/phpCache/
    Chris Beasley - I publish content and ecommerce sites.
    Featured Article: Free Comprehensive SEO Guide
    My Guide to Building a Successful Website
    My Blog|My Webmaster Forums


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •