[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-install
Subject:    [PHP-INSTALL] Help!
From:       Gerry or Karen Craswell <craswellg () sasktel ! net>
Date:       2003-09-23 4:38:19
[Download RAW message or body]

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
 echo( date("l, F dS Y.") );
?>
</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)

[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Message</TITLE>

<META content="MSHTML 6.00.2800.1170" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=810522604-23092003><FONT face=Arial size=2>First let me make it 
clear that I am a beginner at this stuff so even simple problems seem to be 
stumping me.</FONT></SPAN></DIV>
<DIV><SPAN class=810522604-23092003><FONT face=Arial size=2>I have installed 
Apache 1.3.28&nbsp;&nbsp;&nbsp;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).&nbsp; Apache is working, when it is started I can 
call for <A href="http://localhost">http://localhost</A> and I get the index 
file from htdocs, no problem.&nbsp; </FONT></SPAN></DIV>
<DIV><SPAN class=810522604-23092003><FONT face=Arial size=2>When I start Apache, 
the line comes up in the dos window</FONT></SPAN></DIV>
<DIV><SPAN class=810522604-23092003><FONT face=Arial size=2>Apache/1.3.28 
(Win32) PHP/4.3.3 running . . .</FONT></SPAN></DIV>
<DIV><SPAN class=810522604-23092003><FONT face=Arial size=2>From this I assume 
that php is also installed OK and should be working.&nbsp; The problem is that I 
can't get a php test page to come up.&nbsp; 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.</FONT></SPAN></DIV>
<DIV><SPAN class=810522604-23092003><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=810522604-23092003><FONT face=Arial 
size=2>&lt;HTML&gt;<BR>&lt;HEAD&gt;<BR>&lt;TITLE&gt;Today's 
Date&lt;/TITLE&gt;<BR>&lt;/HEAD&gt;<BR>&lt;BODY&gt;<BR>&lt;P&gt;Today's Date 
(according to this Web server) is<BR>&lt;?php</FONT></SPAN></DIV>
<DIV><SPAN class=810522604-23092003><FONT face=Arial size=2>&nbsp;echo( date("l, 
F dS Y.") );</FONT></SPAN></DIV>
<DIV><SPAN class=810522604-23092003><FONT face=Arial 
size=2>?&gt;<BR>&lt;/BODY&gt;<BR>&lt;/HTML&gt;</FONT></SPAN></DIV>
<DIV><SPAN class=810522604-23092003><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=810522604-23092003><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=810522604-23092003><FONT face=Arial size=2>The message that I 
get is </FONT></SPAN></DIV><SPAN class=810522604-23092003>
<H1>Not Found</H1>
<DIV>The requested URL /cgi-bin/php.exe/today.php was not found on this 
server.</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=810522604-23092003>Why is it looking 
there, and how can I fix it?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=810522604-23092003><FONT face=Arial size=2>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)</FONT></SPAN></SPAN></DIV></BODY></HTML>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic