★ wanayoo — archive 1999 http://www.devshed.com/Talk/Forums/Forum5/HTML/000516.htmlNouvelle recherche | Portail wanayoo
DevShed Menu
* DevShed Home
* Developer News
* DevShed Brain Dump




UBBFriend: Email This Page to Someone!
  DevShed Discussion Forums
  PHP
  include/require Performance Comparisons

Post New Topic  Post A Reply
profile | register | preferences | faq | search

next newest topic | next oldest topic
Author Topic:   include/require Performance Comparisons
ElZorro
Junior Member
posted January 26, 2000 06:23 AM     Click Here to See the Profile for ElZorro   Click Here to Email ElZorro     Edit/Delete Message Reply w/Quote
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

the_ocelot
Junior Member
posted June 30, 2000 11:44 AM     Click Here to See the Profile for the_ocelot   Click Here to Email the_ocelot     Edit/Delete Message Reply w/Quote
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).]

silfreed
Junior Member
posted July 03, 2000 02:10 PM     Click Here to See the Profile for silfreed   Click Here to Email silfreed     Edit/Delete Message Reply w/Quote
I'm also worried about include performace hits. I'm potentially embedding 3 includes. Here's an example:
code:
index.php --> html template --> articles.php --> html template
|--> navigation.php --> html template

Thanks for any help anybody can provide.

-silfreed

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

All times are MST (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply
Hop to:

Contact Us | DevShed.com

Copyright © 1997-2000 ngenuity. All rights reserved.

Powered by: Ultimate Bulletin Board, Version 5.41a
© Infopop Corporation (formerly Madrona Park, Inc.), 1998 - 1999.