Reputation: 389
Hello I'm new in Mac and PHP.
I download MAMP server and Atom editor. I write some code in Atom editor and save as hello.php but when i tried to open page, it could open atom editor page.
here is my code. What should i do?
<html>
<head>
<title> PHP Hello </title>
</head>
<body>
<center>
<b>
<h1>
<?php
print "Hello World";
?>
</h1>
</b>
</center>
</body>
</html>
Upvotes: 0
Views: 45
Reputation: 4315
How do you open the page ? If the page is in your www
(or whatever it is named on MAMP), you have to type in your browser
or (strictly equivalent)
Upvotes: 1