httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pete Nelson" <pete.nel...@ci.stpaul.mn.us>
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
C:/php-4.2.0-Win32/experimental/apache2filter.dll
  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
<pete.nelson@ci.stpaul.mn.us>
http://www.ci.stpaul.mn.us/

>>> cam516@bellsouth.net 05/06/02 11:32AM >>>
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 




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message