Reply to Re: Is there a more efficient way to do this?

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация