Page 1 of 1

Can't Get to Sign Screen

Posted: Wed Aug 30, 2006 7:52 pm
by Opv
I just downloaded the Gbook (version 1.43) and am having trouble getting past the main page. Every time I click on "sign guestbook" the page just sits there and goes no where.

The script is installed on my home server (localhost) on Windows XP Professional.

Any ideas?

Posted: Thu Aug 31, 2006 1:15 pm
by Klemen
The only thing that comes to my mind is that your PHP installation is not processing $_GET and/or $_POST properly.

You can try replacing all $_GET in gbook.php with $_REQUEST and see if that helps.

Posted: Thu Aug 31, 2006 1:23 pm
by Opv
Thanks. I tried that and tested the script again but got the same results. I am not receiving any error message. When I click on "sign guestbook" I receive a notice from my firewall that the script is requesting access to my trusted zone. I have granted access but still get nothing.

I have tested my PHP installation and it appears to be installed correctly, and I have the Gbook installation in a folder called Gbook within my web root folder.

Oh well, thanks for your help. I'll keep playing with it and see if anything jumps out at me as being problematic.

Opv

Posted: Thu Aug 31, 2006 5:27 pm
by Klemen
You can try testing this file:
http://www.phpjunkyard.com/extras/get_test.zip

Open it in your browser by adding "?a=test" at the end:
http://(localhost or whatever)/get_testphp?a=test

and see if you get that value displayed or not. If not you indeed have problems with GET.

Posted: Thu Aug 31, 2006 5:38 pm
by Opv
OK.. I get three different outputs depending on the test environment.

IE: All I get is the script code itself....i.e., the PHP is not processed.

FIREFOX: I get "GET 'a' parameter is set to:"

HTML-KIT (my HTML editor): I get "GET 'a' parameter is set to:
PHP Notice: Undefined index: a in get_test.php on line 13"

Posted: Thu Aug 31, 2006 9:33 pm
by Klemen
Exactly what I predicted - your PHP for some reason is not recognizing $_GET variables, probably not even $_POST. Check around at PHP forums/websites if you can find a fix for that, I don't know it.

Posted: Fri Sep 01, 2006 1:50 am
by Opv
I did as you suggested and after a number of exchanges with some PHP experts, I finally found the problem. It seems my server (BRS Webweaver) requries that the server point to PHP_CGI.exe rather than PHP.exe, although the instructions for the program specifically state to insert the path to PHP.exe. I found the problem after someone pointed me to some old posts to the server's help forum. I had searched that forum and failed to find the post with the solution. Anyway, I found the problem and now all is well. Thanks for your help,

Opv