|
Posted by Michael Fesser on 09/24/07 01:04
..oO(geetarista)
>I know this is probably very simple, but for some reason I can't get
>it to work. Basically, I want to use the filename of a web page
>within the <title> tags in the page <head>. So, if the filename is
>pictures.php, I want the title to be "Root title - Pictures", where
>the word "Pictures" is generated by PHP. So I just need PHP to look
>up the filename without the extension, capitalize the first letter,
>and then have the ability to call it within <title>.
$_SERVER['PHP_SELF'], pathinfo() and ucfirst() should give you all you
need. See the manual for details.
Micha
[Back to original message]
|