#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2000
    Location
    Kent, United Kingdom
    Posts
    17
    Rep Power
    0
    Hi all,
    Has anyone got any useful performance comparisons for mod_php using include and require functions.
    I am trying to gauge the most effective method of parsing php3 files (ie do I use a monolythic header file or break it up into seperate include modules)

    The latter is the most desirable from a flexibility/modularity point of view, but I`m worried about the performance hit of a) checking first whether an include exists and b) parsing the file.

    Assuming that the site could reach over a hundred thousand hits in a day.

    Obviously serious caching requirements are necessary....but is PHP a viable option at all for this kind of punishment?

    Cheers,

    Joe Fox
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 1999
    Location
    boone, nc, usa
    Posts
    1
    Rep Power
    0
    I was wondering about the same thing. I was thinking of using the includes to form a sort of template system. Do PHP includes cause a significant performance hit, or will the web server cache them?

    Thanks for any insight you folks might have,

    The Ocelot



    [This message has been edited by the_ocelot (edited June 30, 2000).]
  4. #3
  5. No Profile Picture
    silfreed
    Guest
    Devshed Newbie (0 - 499 posts)
    I'm also worried about include performace hits. I'm potentially embedding 3 includes. Here's an example:
    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>index.php --> html template --> articles.php --> html template
    |--> navigation.php --> html template[/code]

    Thanks for any help anybody can provide.

    -silfreed

    [This message has been edited by silfreed (edited July 03, 2000).]

Similar Threads

  1. Hardware (un)support for performance counter.
    By peenie in forum Computer Hardware
    Replies: 0
    Last Post: October 28th, 2003, 12:48 PM
  2. Database size & performance question
    By lintacious in forum Database Management
    Replies: 1
    Last Post: August 24th, 2003, 02:22 PM
  3. How to improve performance of SQL Server in a Very Large DataBase
    By miguelbartolo in forum Database Management
    Replies: 1
    Last Post: March 27th, 2003, 03:09 AM
  4. Replies: 1
    Last Post: February 15th, 2002, 09:46 AM
  5. int performance
    By wifpwcs in forum MySQL Help
    Replies: 1
    Last Post: February 8th, 2002, 01:13 PM

IMN logo majestic logo threadwatch logo seochat tools logo