This script is a example of date() function. That displays the date and time in the title bar, all you do is just insert the code in between the <title> and </title> tags.
Here the code,

<title>
<?php
echo “( Date”;
echo date(“l”);  //Parameter for  A full textual representation of a  day of a week.
echo “, “;
echo date(“F d, o”); //Parameter for The Months, Dates, Years.
echo ” Time “;
echo date(“g:h:i A”);  //Parameter for The Hours, Minutes, Seconds with leading zeros.
echo “)”;
?>
</title>

you can download the PHP file from here . Download the file and put it into your server and run. very simple try it :) .