I am an absolute beginner to php but have over 10 years experience in html and web design. I have worked with many sites using php but cannot actually write any myself.
My question is - and I have scoured google and forums and tutorials but cannot find an answer or how to do this -
I have the following code in the title tags of my web pages:
Code: Select all
<title><?php include('includes/lang.php'); echo "$title_mainpage"; ?></title>Code: Select all
<title><?php include('includes/lang.php'); echo "$title_anotherpage"; ?></title>and the following code in a lang.php file
Code: Select all
$title_mainpage = "My great web page";Code: Select all
$title_anotherpage = "My other great web page";Code: Select all
php include('includes/lang.php');Thanks,
aussiewebgirl