You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Alex <ca...@bellsouth.net> on 2002/05/06 18:32:12 UTC
RE: "Look back" functionality in Windows for Csaba Gabor
It seems you have 4.2 and 2,035 working on win so maybe you can help me with
this problem.
I have installed PHP 4.2 on my win machine apparently without error, as I
now get no error messages. However if from my DOS prompt I do a PHP <Enter>
The cursor just hangs there. If I using my web browse try to open my
"hello.php" file. I get the code not the message. So obviously there is
something wrong.
Any ideas as to how I can better diagnose and/or correct the problem
C.Alex Morales BBA,MBA
Senior Consultant Peoplesoft/Siebel
305-264-0138
http://personal.atl.bellsouth.net/mia/c/a/cam516/~cam516/
-----Original Message-----
From: Csaba Gabor [mailto:csaba2000@yahoo.com]
Sent: Monday, May 06, 2002 9:56 AM
To: users@httpd.apache.org
Subject: "Look back" functionality in Windows
Hi,
I have read the article at http://www.promotionbase.com/article/485 by
Chris Beasley about a
so called 'Look back' functionality that is evidently available for Apache
on Linux and certain
flavors of Unix. According to my understanding, it works as follows: If
apache receives a
request for
http://myserver.com/dir1/myProg.php/the/rest/of/these/do/not/exist where
dir1/ (and
dir1/myProg.php) exists, but not dir1/the/ then Apache evidently backtracks
up the nonexistant
directory tree until it gets to something that does exist and calls that.
So in this case
dir1/myProg.php would get called with $PATH_INFO evidently containing
myProg.php/the/rest/of/these/do/not/exist
I have Apache 2.0.35, PHP 4.2.0 as a module on a Win2K machine (Sob),
and it doesn't work (I
get a 404 error - page not found). In addition, I wasn't able to find
mention of this under the
words that I searched for anywhere else on the web. Is there documentation
about this 'feature'
(and what is its proper name?) and a way to turn it on in windows?
Also, I would like to go a step further, and have myProg.php rather be
index.php and not
even mention it the mix. That is, I would expect index.php to pick up the
request when the
server is called with
http://myserver.com/dir1/the/rest/of/these/do/not/exist
Thanks for any tips,
Csaba
__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: "Look back" functionality in Windows
Posted by Alex <ca...@bellsouth.net>.
Sorry, that was my initial code, I was just trying different things in total
desperation
C.Alex Morales BBA,MBA
Senior Consultant Peoplesoft/Siebel
305-264-0138
http://personal.atl.bellsouth.net/mia/c/a/cam516/~cam516/
-----Original Message-----
From: Rodent of Unusual Size [mailto:Ken.Coar@Golux.Com]
Sent: Monday, May 06, 2002 3:47 PM
To: users@httpd.apache.org
Subject: Re: "Look back" functionality in Windows
Alex wrote:
>
> <? php
> print "Hello World"
> /?>
I don't know about the source code part, but the above isn't valid
PHP AFAIK. Change '<? php' to '<?php' and '/?>' to '?>'.
--
#ken P-)}
Ken Coar, Sanagendamgagwedweinini http://Golux.Com/coar/
Author, developer, opinionist http://Apache-Server.Com/
"Millennium hand and shrimp!"
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: "Look back" functionality in Windows
Posted by Rodent of Unusual Size <Ke...@Golux.Com>.
Alex wrote:
>
> <? php
> print "Hello World"
> /?>
I don't know about the source code part, but the above isn't valid
PHP AFAIK. Change '<? php' to '<?php' and '/?>' to '?>'.
--
#ken P-)}
Ken Coar, Sanagendamgagwedweinini http://Golux.Com/coar/
Author, developer, opinionist http://Apache-Server.Com/
"Millennium hand and shrimp!"
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: "Look back" functionality in Windows
Posted by Alex <ca...@bellsouth.net>.
I have done everything as explained. When I do an Apache -t I get "syntax
Ok" when I do php-cli -a it works. However it still gives me the source
code when I open this file
<HTML>
<BODY>
<? php
print "Hello World"
/?>
</body>
</html>
C.Alex Morales BBA,MBA
Senior Consultant Peoplesoft/Siebel
305-264-0138
http://personal.atl.bellsouth.net/mia/c/a/cam516/~cam516/
-----Original Message-----
From: Csaba Gabor [mailto:csaba2000@yahoo.com]
Sent: Monday, May 06, 2002 11:11 AM
To: users@httpd.apache.org
Cc: Alex
Subject: RE: "Look back" functionality in Windows
Yes, please see my notes near the bottom of
http://www.php.net/manual/en/faq.installation.php
Also, you may wish to check
http://137.194.8.83/ATSEC/PHP4Apache2Windows.html
I haven't seen this in print anywhere, but my guess as to why you
are hanging when you try php.exe is that you should be trying
php-cli.exe (I'm guessing that it doesn't stand for client, but
rather command line interface). I think that php.exe is for
use as a CGI program exclusively.
As to why you are getting the code, it sounds to me like you haven't
informed apache to make the connection that .php files are an
application type.
Special thanks to Joshua, it was exactly what I wanted to know. The
claim at http://www.apacheweek.com/issues/02-05-03 and
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8234 is that the
AcceptPathInfo directive will be fixed in Apache 2.0.36, which is
supposed to be out soon.
Csaba Gabor
--- Alex <ca...@bellsouth.net> wrote:
> It seems you have 4.2 and 2,035 working on win so maybe you can help me
with
> this problem.
>
> I have installed PHP 4.2 on my win machine apparently without error, as I
> now get no error messages. However if from my DOS prompt I do a PHP
<Enter>
> The cursor just hangs there. If I using my web browse try to open my
> "hello.php" file. I get the code not the message. So obviously there is
> something wrong.
>
> Any ideas as to how I can better diagnose and/or correct the problem
>
>
> C.Alex Morales BBA,MBA
> Senior Consultant Peoplesoft/Siebel
> 305-264-0138
> http://personal.atl.bellsouth.net/mia/c/a/cam516/~cam516/
>
>
> -----Original Message-----
> From: Csaba Gabor [mailto:csaba2000@yahoo.com]
> Sent: Monday, May 06, 2002 9:56 AM
> To: users@httpd.apache.org
> Subject: "Look back" functionality in Windows
>
> Hi,
>
> I have read the article at http://www.promotionbase.com/article/485 by
> Chris Beasley about a
> so called 'Look back' functionality that is evidently available for Apache
> on Linux and certain
> flavors of Unix. According to my understanding, it works as follows: If
> apache receives a
> request for
> http://myserver.com/dir1/myProg.php/the/rest/of/these/do/not/exist where
> dir1/ (and
> dir1/myProg.php) exists, but not dir1/the/ then Apache evidently
backtracks
> up the nonexistant
> directory tree until it gets to something that does exist and calls that.
> So in this case
> dir1/myProg.php would get called with $PATH_INFO evidently containing
> myProg.php/the/rest/of/these/do/not/exist
>
> I have Apache 2.0.35, PHP 4.2.0 as a module on a Win2K machine (Sob),
> and it doesn't work (I
> get a 404 error - page not found). In addition, I wasn't able to find
> mention of this under the
> words that I searched for anywhere else on the web. Is there
documentation
> about this 'feature'
> (and what is its proper name?) and a way to turn it on in windows?
> Also, I would like to go a step further, and have myProg.php rather be
> index.php and not
> even mention it the mix. That is, I would expect index.php to pick up the
> request when the
> server is called with
> http://myserver.com/dir1/the/rest/of/these/do/not/exist
>
> Thanks for any tips,
> Csaba
__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: "Look back" functionality in Windows
Posted by Csaba Gabor <cs...@yahoo.com>.
Yes, please see my notes near the bottom of http://www.php.net/manual/en/faq.installation.php
Also, you may wish to check http://137.194.8.83/ATSEC/PHP4Apache2Windows.html
I haven't seen this in print anywhere, but my guess as to why you
are hanging when you try php.exe is that you should be trying
php-cli.exe (I'm guessing that it doesn't stand for client, but
rather command line interface). I think that php.exe is for
use as a CGI program exclusively.
As to why you are getting the code, it sounds to me like you haven't
informed apache to make the connection that .php files are an
application type.
Special thanks to Joshua, it was exactly what I wanted to know. The
claim at http://www.apacheweek.com/issues/02-05-03 and
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8234 is that the
AcceptPathInfo directive will be fixed in Apache 2.0.36, which is
supposed to be out soon.
Csaba Gabor
--- Alex <ca...@bellsouth.net> wrote:
> It seems you have 4.2 and 2,035 working on win so maybe you can help me with
> this problem.
>
> I have installed PHP 4.2 on my win machine apparently without error, as I
> now get no error messages. However if from my DOS prompt I do a PHP <Enter>
> The cursor just hangs there. If I using my web browse try to open my
> "hello.php" file. I get the code not the message. So obviously there is
> something wrong.
>
> Any ideas as to how I can better diagnose and/or correct the problem
>
>
> C.Alex Morales BBA,MBA
> Senior Consultant Peoplesoft/Siebel
> 305-264-0138
> http://personal.atl.bellsouth.net/mia/c/a/cam516/~cam516/
>
>
> -----Original Message-----
> From: Csaba Gabor [mailto:csaba2000@yahoo.com]
> Sent: Monday, May 06, 2002 9:56 AM
> To: users@httpd.apache.org
> Subject: "Look back" functionality in Windows
>
> Hi,
>
> I have read the article at http://www.promotionbase.com/article/485 by
> Chris Beasley about a
> so called 'Look back' functionality that is evidently available for Apache
> on Linux and certain
> flavors of Unix. According to my understanding, it works as follows: If
> apache receives a
> request for
> http://myserver.com/dir1/myProg.php/the/rest/of/these/do/not/exist where
> dir1/ (and
> dir1/myProg.php) exists, but not dir1/the/ then Apache evidently backtracks
> up the nonexistant
> directory tree until it gets to something that does exist and calls that.
> So in this case
> dir1/myProg.php would get called with $PATH_INFO evidently containing
> myProg.php/the/rest/of/these/do/not/exist
>
> I have Apache 2.0.35, PHP 4.2.0 as a module on a Win2K machine (Sob),
> and it doesn't work (I
> get a 404 error - page not found). In addition, I wasn't able to find
> mention of this under the
> words that I searched for anywhere else on the web. Is there documentation
> about this 'feature'
> (and what is its proper name?) and a way to turn it on in windows?
> Also, I would like to go a step further, and have myProg.php rather be
> index.php and not
> even mention it the mix. That is, I would expect index.php to pick up the
> request when the
> server is called with
> http://myserver.com/dir1/the/rest/of/these/do/not/exist
>
> Thanks for any tips,
> Csaba
__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org