Reputation: 868
Trying out PHP for the 1st time and trying to run a basic PHP program.
The steps I followed:
<html>
<head></head>
<body>
<?php
echo "yeet";
?>
</body>
</html>
The result was:
Upvotes: 1
Views: 209
Reputation: 943157
The default port for http
is port 80
, but you said Apache was running on port 8080
. You need to be explicit in your URL when you are using a non-default port.
http://localhost:8080/php%20program/program.php
Upvotes: 5