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 8796 Mar 17, 2002, 10:52 AM
Thread Re: [6foot4] Php front end not working..?
Alex 8737 Mar 17, 2002, 11:49 AM
Thread Re: [Alex] Php front end not working..?
Nomada 8648 Mar 19, 2002, 3:39 PM
Thread Re: [Nomada] Php front end not working..?
brewt 8713 Mar 22, 2002, 6:01 PM
Thread Re: [brewt] Php front end not working..?
Nomada 8603 Mar 23, 2002, 5:14 AM
Thread Re: [Nomada] Php front end not working..?
brewt 8644 Mar 23, 2002, 1:16 PM
Thread Re: [brewt] Php front end not working..?
Nomada 8714 Mar 23, 2002, 1:30 PM
Thread Re: [Nomada] Php front end not working..?
brewt 8598 Mar 23, 2002, 2:12 PM
Thread Re: [brewt] Php front end not working..?
Nomada 8594 Mar 23, 2002, 5:56 PM
Thread Re: [Nomada] Php front end not working..?
brewt 8611 Mar 23, 2002, 6:32 PM
Thread Re: [brewt] Php front end not working..?
Nomada 8631 Mar 24, 2002, 2:05 AM
Thread Re: [Nomada] Php front end not working..?
brewt 8498 Apr 3, 2002, 11:56 PM
Thread Re: [brewt] Php front end not working..?
Nomada 8441 Apr 7, 2002, 7:39 AM
Thread Re: [Nomada] Php front end not working..?
brewt 8428 Apr 7, 2002, 12:23 PM
Thread Re: [brewt] Php front end not working..?
Nomada 8378 Apr 7, 2002, 12:58 PM
Thread Re: [Nomada] Php front end not working..?
wsjb78 7789 Nov 27, 2002, 3:51 AM
Thread Re: [wsjb78] Php front end not working..?
brewt 7717 Nov 27, 2002, 8:40 PM
Post Re: [brewt] Php front end not working..?
wsjb78 7699 Nov 28, 2002, 1:19 AM
Post Re: [Alex] Php front end not working..?
startpoint 8582 Mar 23, 2002, 4:16 AM