Script not working fine

The following script is not working fine in the google chrome web browser. Can someone help me out with the problem. I am new to learning PHP.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"       
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">       
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">       
  <head>       
    <title>Today&rsquo;s Date</title>       
    <meta http-equiv="content-type"       
        content="text/html; charset=utf-8"/>       
  </head>       
  <body>       
    <p>Today&rsquo;s date (according to this web server) is       
      <?php       
       
      echo date('l, F dS Y.');       
       
      ?>       
    </p>       
  </body>       
</html>

Hi there,

Welcome to the forums :slight_smile:

The script you provide is fine (no errors).

My guess would be that you are trying to open this file locally in your browser (which won’t work).

What is the address you see in your address bar when viewing the file?

e.g.

http://localhost/testing.php

or

file:///home/Pullo/Desktop/testing.php