I’ve just installed WAMP server from http://www.wampserver.com/ And I’m trying to run my first PHP script (hello.php).
This is the code:
<!DOCTYPE html>
<html>
<body>
<?php
echo "My first PHP script!";
?>
</body>
</html>
When I drag hello.php into google chrome, I get a blank screen on the browser.
When I copy the file into C:\wamp\www and type http://localhost/hello.php
into chrome, I get:
This webpage is not available
Google Chrome's connection attempt to localhost was rejected. The website may be down, or your network may not be properly configured.
Error code: ERR_CONNECTION_REFUSED
Any help is much appreciated.
Thanks.
Edit: The icon in my system tray is yellow (indicating something is wrong maybe?)