Click to See Complete Forum and Search --> : CGI problem


travler625
03-07-2003, 11:22 PM
Hi - fairly new to developing, working on a cgi script run guestbook, and post entries to a html page. Cannot properly set the run lines to return entries. Generally receive a "page not found" error. When attempting to run script directly, also receive error.

Script is enabled for read/write/execute access, and all required directories are active.
Shortcut to cgi-linked page is http://www.webgilden.com/bbs.html

Attached is the script I'm trying to run. Stated pathways are correct. I'm sure there's something painfully simple I'm overlooking, but two weeks later, still no such dawning of inspiration...

Would greatly appreciate any feedback, comments, or help.

travler625

Damien
03-08-2003, 07:33 AM
Try this;
Change this line
$entriespage="http://www.webgilden.com/var/www/html/bbs.html";

to

$entriespage="http://www.webgilden.com/bbs.html";

travler625
03-08-2003, 05:14 PM
Tried making the line change to
$entriespage="http://www.webgilden.com/bbs.html"

...but still does not run script properly. This change merely puts the script into a loop, back to the guestbook page over and over again, without allowing user to see the page containing the entries...

Any suggestions?

Damien
03-09-2003, 04:38 AM
Sorry my mistake, I thought you were trying to get a working script to work rather than write your own.

Try not to mix URL's with paths. i.e. the url for the script is;
http://www.webgilden.com/bbs.html

results will be displayed on http://www.webgilden.com/entries.html

Why not make the path to the BBS file a flatfile text database and have entries.html call information from it.