Re: $PATH_INFO not working

From: Date: Fri, 23 Apr 2004 11:55:33 +0000
Subject: Re: $PATH_INFO not working
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-184382@lists.php.net to get a copy of this message
"Noel Da Costa" <noel.dacosta@magharl.co.uk> wrote in message news:20040423113149.6887.qmail@pb1.pair.com... > Thanks 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 know what > to 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 the referring > page 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!! > > Noel I 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

« previous php.general (#184382) next »