HI!
I've just switched to mac and I'm trying to get my web server setup - apache/php/mysql.
I've got everything installed ok I think, but I'm having problems with php. When I check to see if php is installed and running ok with phpinfo() everything checks out. The phpinfo() is in a file with out any headers/body/head, etc. and it works. But when I insert headers and the usual html, none of my php is recognized. It's just ignored.
Here's some code:
!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php echo "hello" ?>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<?php echo "hello" ?>
<body>
<?php echo "hello" ?>
</body>
</html>
The "echo"s are in view source, but nothing shows up in safari.
Wondering what my problem is here.
Never had any similar problems on my winbox.
Any help is greatly appreciated.