Re: SSI include
| From: | Frank M. Kromann | Date: | Fri, 20 Oct 2000 18:29:52 +0000 |
| Subject: | Re: SSI include | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-3418@lists.php.net to get a copy of this message | ||
Hi All,
The php function include() forces the parser to read the file and send it to the client on each
request.
If you use JavaScript include like this
print("<SCRIPT LANGUAGE=\"JavaScript\"
src=\"myfile.js\"></SCRIPT>");
The java script functions will be cached in the clients cache and only that single line will be
processed by the php parser.
- Frank
>"CESBRON S." wrote:
>
>> Does anybody know if we can use the SSI directive <!-- #include FILE="xxx"
>> --> in PHP ?
>
>Try "include()" :)
>
>Basically, here's how you call it... let's say you're in main.php and you want
>to include a common header page/script inside main - let's say header.php,
>then wherever you want that included page/script to appear, you simply put:
>
><?php
> include("header.php");
>?>
>
>It's that easy!
>
>--
>Andy Hoffman
>Web Developer
>Bristol-Myers Squibb
>email: andy.hoffman@bms.com
>
>
>--
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
>For additional commands, e-mail: php-windows-help@lists.php.net
>To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>
>