Gossamer Forum
Home : Products : Gossamer Links : PHP Front End :

Re: [Nomada] Php front end not working..?

Quote Reply
Re: [Nomada] Php front end not working..? In reply to
Hmm... looking at the code, it seems it's something to do with the path_info_to_page() function in Page.php. What webserver are you using? It seems to be setting the variable PATH_INFO to be the path of the file instead of what's being passed in after the CGI. What that piece of code was meant to do was to be like the CGI version of LinksSQL where you could go:
http://www.myhost.com/cgi-bin/page.cgi/SomeCategoryName/anothersubcat
It seems it doesn't work too well on Win32 with that webserver (I'm assuming it's IIS or something). A temporary solution would be to edit admin/Links/PHP/Page.php line 41 from:
Code:
if (isset($HTTP_SERVER_VARS['PATH_INFO'])) {
path_info_to_page();
}
elseif (!$cat_id) {
generate_home_page();
}
else {
generate_category_page();
}
to:
Code:
# if (isset($HTTP_SERVER_VARS['PATH_INFO'])) {
# path_info_to_page();
# }
if (!$cat_id) {
generate_home_page();
}
else {
generate_category_page();
}

Adrian
Subject Author Views Date
Thread Php front end not working..? 6foot4 10323 Mar 17, 2002, 10:52 AM
Thread Re: [6foot4] Php front end not working..?
Alex 10245 Mar 17, 2002, 11:49 AM
Thread Re: [Alex] Php front end not working..?
Nomada 10160 Mar 19, 2002, 3:39 PM
Thread Re: [Nomada] Php front end not working..?
brewt 10226 Mar 22, 2002, 6:01 PM
Thread Re: [brewt] Php front end not working..?
Nomada 10112 Mar 23, 2002, 5:14 AM
Thread Re: [Nomada] Php front end not working..?
brewt 10152 Mar 23, 2002, 1:16 PM
Thread Re: [brewt] Php front end not working..?
Nomada 10219 Mar 23, 2002, 1:30 PM
Thread Re: [Nomada] Php front end not working..?
brewt 10107 Mar 23, 2002, 2:12 PM
Thread Re: [brewt] Php front end not working..?
Nomada 10101 Mar 23, 2002, 5:56 PM
Thread Re: [Nomada] Php front end not working..?
brewt 10126 Mar 23, 2002, 6:32 PM
Thread Re: [brewt] Php front end not working..?
Nomada 10145 Mar 24, 2002, 2:05 AM
Thread Re: [Nomada] Php front end not working..?
brewt 10004 Apr 3, 2002, 11:56 PM
Thread Re: [brewt] Php front end not working..?
Nomada 9948 Apr 7, 2002, 7:39 AM
Thread Re: [Nomada] Php front end not working..?
brewt 9933 Apr 7, 2002, 12:23 PM
Thread Re: [brewt] Php front end not working..?
Nomada 9884 Apr 7, 2002, 12:58 PM
Thread Re: [Nomada] Php front end not working..?
wsjb78 9296 Nov 27, 2002, 3:51 AM
Thread Re: [wsjb78] Php front end not working..?
brewt 9223 Nov 27, 2002, 8:40 PM
Post Re: [brewt] Php front end not working..?
wsjb78 9201 Nov 28, 2002, 1:19 AM
Post Re: [Alex] Php front end not working..?
startpoint 10086 Mar 23, 2002, 4:16 AM