Re: Re: $PATH_INFO not working
| From: | Marek Kilimajer | Date: | Fri, 23 Apr 2004 12:35:12 +0000 |
| Subject: | Re: Re: $PATH_INFO not working | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-184384@lists.php.net to get a copy of this message | ||
Torsten Roehr wrote:
"Noel Da Costa" <noel.dacosta@magharl.co.uk> wrote in message news:20040423113149.6887.qmail@pb1.pair.com...I think it's called X-Bit hack or something like thatThanks for the thought... I was using getenv('PATH_INFO'). I tried $_SERVER['PATH_INFO'], but it didn't help. PATH_INFO is working, ie being filled, but Apache doesn't seem to knowwhatto do with it. So if my link has a URL: "index.php/section/login" it tries to find a literal folder with that path, instead of simply passing the "/section/login" bit to the PATHINFO variable within the index.php file. This is the error msg: " Object not found! The requested URL was not found on this server. The link on thereferringpage seems to be wrong or outdated. Please inform the author of that page about the error. If you think this is a server error, please contact the webmaster Error 404 192.9.200.182 Fri Apr 23 12:35:45 2004 Apache/2.0.40 (Red Hat Linux) " I'm sure it's something to do with config, because we just re-compiled PHP on the test server... and now my script won't run on the test server too!! NoelI just searched my email archive. I had this problem with one of my providers. Then they changed the file permission to 705 and it worked! So set this for your index.php and try again. I know it sounds strange that this has got something to do with Apache's look-back feature but it does! Regards, Torsten