Why does localhost display Raw PHP Code?

  • Thread starter Thread starter saxonthebeach27
  • Start date Start date
S

saxonthebeach27

Guest
When I preview the code in firefox via nusphere - my text editor- <?php phpinfo(); ?> loads fine - but when I access it on localhost - which defaults to my desktop files and I select the php file- it just displays <?php phpinfo(); ?>.
WTF? :o

Using the latest version of WAMP... short tags turned on in php.ini.
Yes the url is http://localhost
says Wamp Server Offline as well..

Where can I check the directory where apache/localhost is active?
 
Because PHP is not installed on localhost or something is wrong with the configuration.
 
Back
Top