How do I display todays date on my website?
The function you are after is called date, which has loads of different parameters that will return different elements of the date. For a full list, be sure to check out the manpage on the www.php.net site.
However to the question in hand:
<?php
$today = date('F j, Y');
echo "Todays date is: $today";
//Todays date is: Sep 18, 2007
?>
Comment on this Question and Answer >>>
ASK A QUESTION
More website PHP Questions
How do I find a visitors IP address?how can i add a chatbox to my site?
I have two web solutions I downloaded from the internet. Jobs Portal, Classified and a forum script. Each of the scripts has its own signup and log in module. How can I make visitors register and login through one webpage without having to login in all th
How do I perform a 301 redirect with PHP?
how to display only product image with product name in 4 column set from mysql database?
