First sample PHP not working with wamp/firefox

I am trying PHP code for the very first time and copying the code in the instructions but when I try to open it “hhtp://localhost/today.php” I am getting the code displayed and not the expected result.

     <title>Today&rsquo;s Date</title>          

      <meta http-equiv="content-type"            

       content="text/html; charset=utf-8"/>        
   <p>Today&rsquo;s date (according to this web server) is          


             echo date('l, F dS Y.');                




Can anyone explain why please

Have you confirmed WAMP is working correctly? If not, make a phpinfo.php file with the following in it


// Show all information, defaults to INFO_ALL


Place that in the root of your WAMP server, then got to http://localhost/phpinfo.phpin your browser. You should get a whole raft of information about your PHP install if the WAMP server is working correctly.

Small typo there, it should be http not hhtp

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.