RE: [PHP] Heavy Load
| From: | Lars Holm Nielsen | Date: | Thu, 24 Aug 2000 17:30:14 +0000 |
| Subject: | RE: [PHP] Heavy Load | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-13473@lists.php.net to get a copy of this message | ||
> If all of the html files on a site were PHP files, would it put an extra
load an
> Apache Server with the PHP module for having to process all of the files?
Say if
> you wanted to use a PHP header and footer on every html page. Or is the
work load > almost the same for plain html files and PHP files with simple
includes or print
> commands?
As mentioned in other mails the load will not be the same. Each page would
have to go through PHP, before httpd would sent it. Though, the difference
wouldn't be very big, while PHP just let normal HTML run through without any
check. Therefore, for instance, it's also faster to have normal HTML outside
the PHP tags, instead of letting PHP writing it like:
---fast------
<?//PHPFILE?>
<b>some html</b>
---slower------
<?//PHPFILE
echo "<b>some html</b>";
?>
----
The differnece aren't big, but it's there.
---
Regards,
Lars Holm Nielsen <lars@xenux.dk>
XENUX ApS - The Linux People
http://www.xenux.dk