httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pete Nelson" <>
Subject RE: "Look back" - using PHP (OT)
Date Mon, 06 May 2002 15:45:46 GMT
First off, with PHP 4.2 on windows, there is no longer a 'php.exe', but
a 'php-cli.exe'.  Either you're running a different program than you're
telling us, or you have a different version of PHP than you're telling
us. (or worse, you have an older version of PHP in your path somewhere .
. .)

Second, the php executable (php or php-cli) will 'hang' as it waits for
input if you run it from the command line.  That's what it's supposed to
do.  Try a 'php -h' or 'php-cli -h' to see all the options, including
how to syntax check a file, or parse a file on the command line.

Third, if you're opening a php file from the filesystem, your browser
will not know how to interpret the code, so you will see the contents of
the script.  

As far as getting PHP 4.2.0 to work with Apache 2.0.35, these two lines
(plus the instructions for installing php.ini and php4ts.dll) works fine
for me:

  LoadModule php4_module
  AddType application/x-httpd-php .php .php3 .php4

That seems to be all I need to get it to work with Apache 2.

Pete Nelson, Web Developer

>>> 05/06/02 11:32AM >>>
It seems you have 4.2 and 2,035 working on win so maybe you can help me
this problem.

I have installed PHP 4.2 on my win machine apparently without error, as
now get no error messages.  However if from my DOS prompt I do a PHP
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
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

-----Original Message-----
From: Csaba Gabor [] 
Sent: Monday, May 06, 2002 9:56 AM
Subject: "Look back" functionality in Windows


    I have read the article at
Chris Beasley about a
so called 'Look back' functionality that is evidently available for
on Linux and certain
flavors of Unix.  According to my understanding, it works as follows: 
apache receives a
request for
dir1/ (and
dir1/myProg.php) exists, but not dir1/the/ then Apache evidently
up the nonexistant
directory tree until it gets to something that does exist and calls
So in this case
dir1/myProg.php would get called with $PATH_INFO evidently containing

    I have Apache 2.0.35, PHP 4.2.0 as a module on a Win2K machine
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
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
index.php and not
even mention it the mix.  That is, I would expect index.php to pick up
request when the
server is called with 

    Thanks for any tips,

Do You Yahoo!?
Yahoo! Health - your guide to health and wellness 

To unsubscribe, e-mail: 
For additional commands, e-mail: 

To unsubscribe, e-mail: 
For additional commands, e-mail: 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message