First let me make it
clear that I am a beginner at this stuff so even simple problems seem to be
stumping me.
I have installed
Apache 1.3.28 and PHP 4.3.3 and am hoping to use them to test
web pages that I am planning to develop that will extract data out of mysql
(which I have also installed). Apache is working, when it is started I can
call for http://localhost and I get the index
file from htdocs, no problem.
When I start Apache,
the line comes up in the dos window
Apache/1.3.28
(Win32) PHP/4.3.3 running . . .
From this I assume
that php is also installed OK and should be working. The problem is that I
can't get a php test page to come up. I have created a page called
today.php that has the following code which according to a book I have should
return a statement with todays date.
<HTML>
<HEAD>
<TITLE>Today's Date</TITLE>
</HEAD>
<BODY>
<P>Today's Date (according to this Web server) is
<?php
<HEAD>
<TITLE>Today's Date</TITLE>
</HEAD>
<BODY>
<P>Today's Date (according to this Web server) is
<?php
echo( date("l,
F dS Y.") );
?>
</BODY>
</HTML>
</BODY>
</HTML>
The message that I
get is
Not Found
The requested URL /cgi-bin/php.exe/today.php was not found on this
server.
Why is it looking
there, and how can I fix it?
If I rename the file
today.htm, the text statement comes up, but it doesn't process the php part
(which I didn't expect it to, but it tells me the html is working
OK)