Performance question
| From: | Fredrik Wahlberg | Date: | Thu, 18 Oct 2001 08:17:16 +0000 |
| Subject: | Performance question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-71448@lists.php.net to get a copy of this message | ||
Hi!
I have a page that uses server-side includes to display different
features. Something like this:
<html>
<!--#include virtual="feature1.php"--> (a few db calls)
<!--#include virtual="feature2.cgi"--> (perl-script with db calls)
<!--#include virtual="feature3.php"--> (even more db calls)
</html>
If everything is embedded in a php-page I assume that the parser would
start only once, and that the db-connections would be open until the
whole page closes?
If the assumption above is correct, does the same apply to a .shtml-page?
Or does the parser execute eache php-script one at the time, each time
invoking the parser?
Somehow I'm afraid I have to rewrite my perl code to php and put
everything on one page, but I would sure like to hear a few arguments on
how to plan for performance.
/Fredrik
--
----------------------------------------------
Fredrik Wahlberg Tel: 08-54 54 56 12
Fusage Fax: 08-54 54 56 10
Kungstensgatan 38a Mobil: 070-576 16 51
113 59 STOCKHOLM http://www.fusage.com
----------- fredrik@fusage.com ---------------