I'm having problems echoing out my <title> tag. On the same page I have my html 5 as: Code: <title><?php echo $pagetitle;?></title> In the header section. A little below in the same document I then have: PHP: <?php $pagetitle='My cool title';?> However it is not working. I thought this was a global scope and when the directories were of a different structure in my old website this used to work. Does anyone know why this won't work and how I can get it to work?