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" <[EMAIL PROTECTED]> 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 ...



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to