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
where do i go to paste my google adsense code?How do I find a visitors IP address?
I would like to browse to a url eg http://mysite.com/index.html and dump the content of that site in a variable eg $htmlDump?
Hi, I need to fetch data from a web page with PHP. The only problem that I face is that I need to log in with name and password.
What is magic quotes?
