[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 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 <A href="http://localhost">http://localhost</A> and I get the index
file from htdocs, no problem. </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. 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.</FONT></SPAN></DIV>
<DIV><SPAN class=810522604-23092003><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=810522604-23092003><FONT face=Arial
size=2><HTML><BR><HEAD><BR><TITLE>Today's
Date</TITLE><BR></HEAD><BR><BODY><BR><P>Today's Date
(according to this Web server) is<BR><?php</FONT></SPAN></DIV>
<DIV><SPAN class=810522604-23092003><FONT face=Arial size=2> echo( date("l,
F dS Y.") );</FONT></SPAN></DIV>
<DIV><SPAN class=810522604-23092003><FONT face=Arial
size=2>?><BR></BODY><BR></HTML></FONT></SPAN></DIV>
<DIV><SPAN class=810522604-23092003><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=810522604-23092003><FONT face=Arial
size=2></FONT></SPAN> </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> </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> </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