Strange URL

This is a discussion on Strange URL within the PHP Language forums, part of the PHP Programming Forums category; Hi, a friend of mine is trying to move his website to my server. This site contains some PHP scripts ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-10-2004
Ralf
 
Posts: n/a
Default Strange URL

Hi,

a friend of mine is trying to move his website to my server. This site
contains some PHP scripts which are called in an uncommon way, eg:
http://xxxx/path1/path2/script.php/login

In this case, /login should be passed to script.php

This was running with Apache 1.3.27 / PHP 4.3.3 but seems not to work
on my combination of Apache 2.0.46 / PHP 4.3.2

Any guesses what I can do w/o changing all the scripts?

Thanks,

Ralf
Reply With Quote
  #2 (permalink)  
Old 12-10-2004
Allodoxaphobia
 
Posts: n/a
Default Re: Strange URL

On 10 Dec 2004 10:51:03 -0800, Ralf hath writ:
> Hi,
>
> a friend of mine is trying to move his website to my server. This site
> contains some PHP scripts which are called in an uncommon way, eg:
> http://xxxx/path1/path2/script.php/login
>
> In this case, /login should be passed to script.php
>
> This was running with Apache 1.3.27 / PHP 4.3.3 but seems not to work
> on my combination of Apache 2.0.46 / PHP 4.3.2
>
> Any guesses what I can do w/o changing all the scripts?


.htaccess ???

Jonesy
--
| Marvin L Jones | jonz | W3DHJ | linux
| Gunnison, Colorado | @ | Jonesy | OS/2 __
| 7,703' -- 2,345m | config.com | DM68mn SK
Reply With Quote
  #3 (permalink)  
Old 12-10-2004
Brion Vibber
 
Posts: n/a
Default Re: Strange URL

Ralf wrote:
> a friend of mine is trying to move his website to my server. This site
> contains some PHP scripts which are called in an uncommon way, eg:
> http://xxxx/path1/path2/script.php/login
>
> In this case, /login should be passed to script.php
>
> This was running with Apache 1.3.27 / PHP 4.3.3 but seems not to work
> on my combination of Apache 2.0.46 / PHP 4.3.2


If you compiled PHP with the apache2filter or cgi SAPI, this method
doesn't seem to work.

There's an Apache configuration setting AcceptPathInfo; try forcing it
on in httpd.conf or .htaccess. If that doesn't work, try recompiling PHP
with the apache2handler SAPI. (Consider upgrading to PHP 4.3.9, as well.
There are numerous bug fixes since 4.3.2.)

You can see which SAPI (server API) you're using from the output of
phpinfo() or the php_sapi_name() function.

-- brion vibber (brion @ pobox.com)
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 09:34 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0