Franco
Franco

Reputation: 868

Unable to run PHP file

Trying out PHP for the 1st time and trying to run a basic PHP program.

The steps I followed:

enter image description here

<html>
    <head></head>
    <body>
        
        <?php
            echo "yeet";
        ?>
    </body>
</html>

The result was:

enter image description here

Upvotes: 1

Views: 209

Answers (1)

Quentin
Quentin

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

Related Questions