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.
I also tried saving it as a .php file and the same thing happened except first windows asked me what program i wanted to use to open the file. (I selected IE) Do i need some sort of server software installed for this to work? i.e apache
Thanks
Code:
<html>
<head>
<title>Listing 1-6</ title>
</head>
<body>
Today's date: <?php print( Date(" l F d, Y")); ?>
</body>
</html>
I also tried saving it as a .php file and the same thing happened except first windows asked me what program i wanted to use to open the file. (I selected IE) Do i need some sort of server software installed for this to work? i.e apache
Thanks