December 2, 2008
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
.
Entry Filed under: My Works, PHP, PHP Function, PHP Scripts, Tips. Tags: date, date() function, displaying date, php functions, PHP Scripts, time.
1.
pollobcse05 | December 2, 2008 at 4:29 pm
cooooool……..
2. PHP Coding School »&hellip | December 2, 2008 at 5:00 pm
[...] Displaying Date and Time in the Title Bar using PHP Scripts By Saeed you can download the PHP file from here . Download the file and put it into your server and run. very simple try it . Posted in My Works, PHP, PHP Function, PHP Scripts, Tips Tagged: date, date() function, displaying date, php functions … Origami – http://saeed05.wordpress.com/ [...]
3.
Shamim | December 2, 2008 at 6:28 pm
Very Good job..carry on boss.