I can't seem to get php to work.
I was following a tutorial for php when I opened this file in my browser (called index.php):
It either displays all of the text in the file, or:
I googled mac tutorials for php, and found that it needed to be enabled, so I followed the instructions, took out the comment in the /private/etc/apache2/httpd.conf file, but it still doesn't seem to work.
So basically I'm lost.
What am I doing wrong? I'm sure it's something really simple...
I was following a tutorial for php when I opened this file in my browser (called index.php):
Code:
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo "<p>Hello World!</p>"; ?>
</body>
</html>
It either displays all of the text in the file, or:
Code:
Hello World!
; ?>
I googled mac tutorials for php, and found that it needed to be enabled, so I followed the instructions, took out the comment in the /private/etc/apache2/httpd.conf file, but it still doesn't seem to work.
So basically I'm lost.
What am I doing wrong? I'm sure it's something really simple...