January 26th, 2000, 07: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
June 30th, 2000, 12:44 PM
-
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).]
-
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).]