Basic PHP problem (displaying text)

Hi, im very new to php (as in started learning 5 minutes ago) but i’ve come across a bit of a problem already. I got the following code from a php tutorial and apparently it should display todays date. I put it in a text file and saved it as a .html file but when i click on the page all i get is a blank white page. Im sure this is something incredibly basic but if someone can help it’s appreciated.

<title>Listing 1-6</ title> 
Today's date: <?php print( Date(" l F d, Y")); ?> 


Most hosts don’t allow for PHP parsing in .html files. Save it as .php and it should work.

Sponsor our Newsletter | Privacy Policy | Terms of Service