Issue
I'm new to this so please forgive me.
I have set up MAMP and am trying to run a PHP file (index.php). I have the green lights and have my index.php file inside the htdocs folder.
But nothing seems to show up in the browser.
Here is my setup
I have done as told in the answers in this question running php on mamp
which includes:
http://localhost/index.php
http://localhost:8888/index.php
both give me a bank page.
I tried /Applications/MAMP/htdocs/index.php and it give me this.
Solution
Change this:
<php? echo"hello"; ?>
to:
<?php echo "hello"; ?>
The php's tags are:
<?php
for opening and ?>
for closing
Answered By - Emilio Gort
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.