I am working on getting a client version of Apache and PHP working on my MacBook Pro. I installed Leopard on it sometime ago (10.5.5 as of today).
I am trying to set up Apache and php. So far I have the Apache server working fine for the system directory and my Sites directory.
I downloaded php from Marc Liyanage - Software - Mac OS X Packages - PHP as it seemed like Adobe wanted me to (I will be using Dreamweaver CS4 for development). The install of the download seemed to work fine....but...
..when I run the file called timetest.php (that has the following php code):
<p>This page was created at
<b><?php echo date("h:i:s a", time()); ?></b> on the computer running PHP.</p>
I get the following output in Firefox..(when it is supposed to print out the current time and date)
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
</head>
<body>
<p>This page was created at<br />
<b><?php echo date("h:i:s a", time()); ?></b> on the computer running PHP.</p>
</body>
</html>
I am also aware that I can use the bundled version of php (if I did not hammer it with my download) by taking out the comment on the
#LoadModule php5_module libexec/apache2/libphp5.so
line of the hhtpd.conf file....but I tried that with no better result.
Anybody run across this before? And I would like to solve this problem and don't want to consider MAMP at this time.
I am trying to set up Apache and php. So far I have the Apache server working fine for the system directory and my Sites directory.
I downloaded php from Marc Liyanage - Software - Mac OS X Packages - PHP as it seemed like Adobe wanted me to (I will be using Dreamweaver CS4 for development). The install of the download seemed to work fine....but...
..when I run the file called timetest.php (that has the following php code):
<p>This page was created at
<b><?php echo date("h:i:s a", time()); ?></b> on the computer running PHP.</p>
I get the following output in Firefox..(when it is supposed to print out the current time and date)
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
</head>
<body>
<p>This page was created at<br />
<b><?php echo date("h:i:s a", time()); ?></b> on the computer running PHP.</p>
</body>
</html>
I am also aware that I can use the bundled version of php (if I did not hammer it with my download) by taking out the comment on the
#LoadModule php5_module libexec/apache2/libphp5.so
line of the hhtpd.conf file....but I tried that with no better result.
Anybody run across this before? And I would like to solve this problem and don't want to consider MAMP at this time.