|
Author
|
Topic: include/require Performance Comparisons
|
ElZorro Junior Member
|
posted January 26, 2000 06:23 AM
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
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
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).] |