Posted by Rik on 08/15/06 18:11
laredotornado@zipmail.com wrote:
>> --.htaccess------------
>> php_flag auto_prepend_file head.html
>> php_flag auto_append_file foot.html
>> -----------------------
>> ---page.php------------
>> echo $content;
>> -----------------------
>
> Regarding this idea, will the prepend happen at the very beginning of
> the page?
Yes, before line 0 so to speak.
> I still want each of my 15 pages to have custom titles
> (e.g.
> the <TITLE> element is different for each) and I wouldn't want to
> screw
> up the HTML by prepending data before the "<HTML><HEAD><TITLE>..."
> elements.
Either check & set the title in the head.php (instead of a static *.html),
or go with Gary Hasler's option (which is the one I normally use). The
drawbacks he mentions can easily be solved.
I usually use some RewriteRule's in .htaccess to make it seems they're
different static pages.
Grtz,
--
Rik Wasmus
[Back to original message]
|