You are currently browsing the daily archive for December 2nd, 2008.
Daily Archive
Displaying Date and Time in the Title Bar using PHP Scripts
December 2, 2008 in My Works, PHP, PHP Function, PHP Scripts, Tips | Tags: date, date() function, displaying date, php functions, PHP Scripts, time | 3 comments
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
.








Recent Comments