Re: altering titles to fit includes

From: Date: Sat, 02 Sep 2000 13:56:32 +0000
Subject: Re: altering titles to fit includes
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-14925@lists.php.net to get a copy of this message
"Splitskull" <Splitskull@home.com> wrote: > i'm not sure this is the right page to post this on, but maybe someone can > help anyway. > i have a php4 page, which includes html files for the body of the text, and > i would like this page to be able to show its title according to the defined > $title in the included page, but I can not for the life of me get it to > work. i think its a little more complicated than i imagined. does anyone > know the code setup i can use to do this? includefile.inc <? $title = "test"; ?> test.php <? include(includefile.inc); echo "<title>$title</title>"; ?> this will work, if i understood your problem right. -- Henrik Hansen hh at mailserver.dk

« previous php.general (#14925) next »