Toying with Apache further, I actually was able to get this to work a few
minutes I posted the thread. What I was doing wrong was running PHP as a CGI
rather than using it as SAPI module.

Hopefully this helps other folks as I was going nuts going through
google.com trying to find a solution.

Add this line to your httpd.conf with the path to php4apache.dll included in
the Windows distribution:

LoadModule php4_module C:\apache\php\sapi\php4apache.dll

Then add this line:

AddModule mod_php4.c

Then add the MIME types for PHP:

AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml

Also, you'll need to copy php4ts.dll into your c:\Windows\System32 folder.

After all that, this feature works under Windows whoohoo :)

"Gerard Samuel" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> As far as I know, this technique doesn't work under windows...
>
> Jonathan Chum wrote:
>
> >I'm following various tutorials online that uses the PATH_INFO to do
this,
> >however Apache isn't playing nicely. I read a few documents that Apache
has
> >a built in look back feature, but a query on google on lead me back to a
few
> >articles that I just read so I'm assuming this feature is made up in the
> >article?
> >
> >I've gotten the .htaccess to run a file as a .php, however I can't attach
> >arguments to the right hand side of the URL. An example would be, I have
a
> >file called index.php. I turn this into index and run it as a .php file.
It
> >works fine, though I should be able to add /name/1 which shows up under
the
> >PATH_INFO variable.
> >
> >However, I get a blank page and this error logged in Apache:
> >
> >[Sat Jan 11 10:33:40 2003] [error] [client 127.0.0.1] PHP Fatal error:
> >Unable to open c:\apache\www\www.mxportal.com\public_html\dir\resources\d
in
> >Unknown on line 0
> >
> >So it looks like Apache is not reading back to resources, but thinks
there
> >is  folder called resources and a file called d in which it's trying to
open
> >and pass it to PHP.
> >
> >This however works under *NIX systems. I'm not sure if there's a
different
> >of doing it under Windows or if this is a bug in Apache. Any ideas?
> >
> >
> >
> >
> >
>
> --
> Gerard Samuel
> http://www.trini0.org:81/
> http://dev.trini0.org:81/
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to