Re: dynamic title tag generation?

From: Date: Sat, 14 Sep 2002 03:46:23 +0000
Subject: Re: dynamic title tag generation?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-116350@lists.php.net to get a copy of this message
Thanks Justin.. That's exactly what I was looking for.. I appreciate the examples and comments.. I changed the code a bit, but str_replace() was what I was indeed needing.. I'll have to figure a way to convert the numbers in the file names to their numeric value rather than their spelled out form, but that shouldn't be to difficult.. Thanks again.. Take care.. peace.. eriol ==== "Justin French" <justin@indent.com.au> disgorged: : [snip] : : <? : $domain = $_SERVER['HTTP_HOST']; : $phpself = $_SERVER['PHP_SELF']; : $phpself = str_replace('.php', '', $phpself); // remove .php : $phpself = str_replace('.', ' ', $phpself); // remove .'s : $phpself = str_replace('tut', 'tutorial', $phpself); : $phpself = str_replace('cgi', 'CGI', $phpself); : $phpself = ucwords($phpself); : $title = $domain.$phpself; : echo "<TITLE>{$title}</TITLE>"; : ?> : : [snip]

« previous php.general (#116350) next »