I am fairly new to this and perhaps this topic has been answered before but I am getting frustrated.
I am quite experienced with HTML and CSS but I am trying to learn PHP. I have written the following to test my wamp server:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>Untitled 1</title>
</head>
<body>
<?php
$number = "5";
$sum = 15 + $number;
$sum = "Twenty";
?>
</body>
</html>
This was saved to xampp/htdocs folder. I typed "localhost/stringnumber.php" into my Chrome browser address bar and got the following message:
Not Found
HTTP Error 404. The requested resource is not found.
I have had the same error message with the Easyphp and Abyss webservers a well.
I am using an Acer E5 laptop with 1Tb hhd and 8Gb memory running W10 home and using MS Expression Web 4.
Any ideas please?