Page.Title equivalent in PHP -


i want change title of php pages dynamically since headers , footer sections include files cannot use <title><?php echo $title;?></title> kind of solution.

i wondering if there solution such 1 in asp.net page.title = "some title"; maybe $page->set_title('programmers palace');

many thanks...

since headers , footer sections include files cannot use <title><?php echo $title;?></title> kind of solution.

you can. because files included doesn't mean can't echo things there.

if had page object...

index.php

<?php  $page = new page('programmers\' palace');  include 'includes/header.php'; 

includes/header.php

<head>   <title><?php echo $page->gettitle(); ?></title> </head> 

Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -