Connecting Tech Pros Worldwide Help | Site Map

Strange URL

  #1  
Old July 17th, 2005, 10:57 AM
Ralf
Guest
 
Posts: n/a
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
  #2  
Old July 17th, 2005, 10:57 AM
Allodoxaphobia
Guest
 
Posts: n/a

re: Strange URL


On 10 Dec 2004 10:51:03 -0800, Ralf hath writ:[color=blue]
> 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?[/color]

.htaccess ???

Jonesy
--
| Marvin L Jones | jonz | W3DHJ | linux
| Gunnison, Colorado | @ | Jonesy | OS/2 __
| 7,703' -- 2,345m | config.com | DM68mn SK
  #3  
Old July 17th, 2005, 10:57 AM
Brion Vibber
Guest
 
Posts: n/a

re: Strange URL


Ralf wrote:[color=blue]
> 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[/color]

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)
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
a strange exception Developer.Man4@gmail.com answers 5 February 5th, 2007 03:45 PM
Need a strange sort method... SpreadTooThin answers 20 October 17th, 2006 05:45 PM
perhaps a stack problem? Long calculations - strange error? Martin Joergensen answers 11 May 10th, 2006 04:26 AM
Strange URL for web project Jami Bradley answers 0 November 18th, 2005 03:30 PM