[PHP] dynamic meta tag and title app?

2009-11-18 Thread Jack S
Hello All,

Does anyone have a reference to a program that may be out there to
help with using a single header.php for a site, but then dynamically
loads different keywords , titles etc based on what page is including
the header file?

Sample:
If home page include it knows the title and other variables would be
home, about us would be about etc.

-- 
Thanks!
Jack

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] dynamic meta tag and title app?

2009-11-19 Thread Jack S
Hi Todd,

This looks like a good starting point for me.
I was going to use $_SERVER['PHP_SELF'];  but I think
($_SERVER['SCRIPT_NAME']); in your example will always return just the
script info and not additionally passed information, which will save
me trouble shooting later!

Thanks!!!


On Thu, Nov 19, 2009 at 10:09 AM, tedd  wrote:
> At 11:30 AM -0500 11/18/09, Jack S wrote:
>>
>> Hello All,
>>
>> Does anyone have a reference to a program that may be out there to
>> help with using a single header.php for a site, but then dynamically
>> loads different keywords , titles etc based on what page is including
>> the header file?
>>
>> Sample:
>> If home page include it knows the title and other variables would be
>> home, about us would be about etc.
>>
>> --
>> Thanks!
>> Jack
>
> Jack:
>
> I do this for my site. It's pretty simple -- please follow:
>
> 
>  $self = basename($_SERVER['SCRIPT_NAME']);
>
> switch($self)
>   {
>   case 'index.php':
>   ?>
>   Title of Index Page
>   
>   
>      break;
>
> and so on.
>
> Cheers,
>
> tedd
>
> --
> ---
> http://sperling.com  http://ancientstones.com  http://earthstones.com
>



-- 
Thanks!
Jack

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] get question

2012-08-27 Thread Jack S
Hello All,

Trying to figure out why when I include the page that contains this
code, I'm not able to get the $calling_page populated with any values.
Any help appreciated...


";

} elseif ($calling_page == "index") {
$title = "Title 2 - $calling_page";
$body = "";

# Non Specified Page
--
} else {
$title = "Title 3 - $calling_page";
$body = "";

}

echo "".$title."";
?>


-- 
Thanks!
Joey

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php