Re: auto_prepend/append: does the PHP engine cache the
| From: | Wez Furlong | Date: | Sun, 29 Sep 2002 13:09:17 +0000 |
| Subject: | Re: auto_prepend/append: does the PHP engine cache the | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-88749@lists.php.net to get a copy of this message | ||
BTW: if you keep your various HTML chunks in their own separate files,
using readfile() to output them will optimially make use of your OS ability
to cache files.
In PHP 4.3 (due for release fairly soon), there is also file_get_contents()
which uses the same mechanism but returns the contents as a string.
--Wez.
On 09/29/02, "Jean-Christian Imbeault" <jean_christian@myrealbox.com> wrote:
> I find myself including() the same constants.inc file in all my scripts,
> is there a way to declare static constants that remain even when a
> script exits? (I am using PHP as an Apache module).
>
> If this is possible I can even see myself defining() some constants to
> be chunks of static HTML that I am also often including() in pages ...