Hi I was just wondering if this code is wrong, as I can not see the date. <html> <head></head> <body class="page_bg"> Hello, today is <?php echo date('l, F jS, Y'); ?>. </body> </html> Is anything here wrong? Thankyou in advance steve
if the file is a .html file then this does not work. However you can add a handler so that apache treats .html the same way as .php. There are different ways to do that but the safest is to contact your host and ask them.
Hi Stephan Thank you for helping out. I am going through a php tutorial and it says that I need to put php into a html page using the php tags. Only I cant seem to work out how to do it. I can view the php file on its own and the html file on there own on my pc on localhost. I'll have to keep watching the php chapter till I can figure out what he has done differently. All the best Steve
Everything is perefect just rename the file to blabla.php and check I hope you named as .html or .htm before so rename that first