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 12208 Mar 17, 2002, 10:52 AM
Thread Re: [6foot4] Php front end not working..?
Alex 12113 Mar 17, 2002, 11:49 AM
Thread Re: [Alex] Php front end not working..?
Nomada 12030 Mar 19, 2002, 3:39 PM
Thread Re: [Nomada] Php front end not working..?
brewt 12096 Mar 22, 2002, 6:01 PM
Thread Re: [brewt] Php front end not working..?
Nomada 11977 Mar 23, 2002, 5:14 AM
Thread Re: [Nomada] Php front end not working..?
brewt 12011 Mar 23, 2002, 1:16 PM
Thread Re: [brewt] Php front end not working..?
Nomada 12084 Mar 23, 2002, 1:30 PM
Thread Re: [Nomada] Php front end not working..?
brewt 11979 Mar 23, 2002, 2:12 PM
Thread Re: [brewt] Php front end not working..?
Nomada 11963 Mar 23, 2002, 5:56 PM
Thread Re: [Nomada] Php front end not working..?
brewt 11992 Mar 23, 2002, 6:32 PM
Thread Re: [brewt] Php front end not working..?
Nomada 12003 Mar 24, 2002, 2:05 AM
Thread Re: [Nomada] Php front end not working..?
brewt 11864 Apr 3, 2002, 11:56 PM
Thread Re: [brewt] Php front end not working..?
Nomada 11808 Apr 7, 2002, 7:39 AM
Thread Re: [Nomada] Php front end not working..?
brewt 11794 Apr 7, 2002, 12:23 PM
Thread Re: [brewt] Php front end not working..?
Nomada 11745 Apr 7, 2002, 12:58 PM
Thread Re: [Nomada] Php front end not working..?
wsjb78 11171 Nov 27, 2002, 3:51 AM
Thread Re: [wsjb78] Php front end not working..?
brewt 11084 Nov 27, 2002, 8:40 PM
Post Re: [brewt] Php front end not working..?
wsjb78 11059 Nov 28, 2002, 1:19 AM
Post Re: [Alex] Php front end not working..?
startpoint 11945 Mar 23, 2002, 4:16 AM