bc_comm
03-18-2005, 08:58 PM
I am new to CGI programming, although have some programming experience. I am trying to implement Matt's Script Archive Guestbook script which provides users with a form to complete, runs the script and posts their information.
In testing now, I see the following error after the form is submitted:
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:
The system cannot find the path specified.
The system cannot find the path specified.
Can't Open d:inetpubwwwrootjewishchildcareny.orglumni est120l_guestbook_test.asp: Invalid argument
The modified section of the script currently reads as follows:
$guestbookurl = "http://www.jewishchildcareny.org/alumni/test120/al_guestbook_test.asp";
$guestbookreal = "d:\inetpub\wwwroot\jewishchildcareny.org\alumni\test120\al_guestbook_test.asp";
$guestlog = "d:\inetpub\wwwroot\jewishchildcareny.org\alumni\test120\guestlog.html";
$cgiurl = "http://www.jewishchildcareny.org/cgi-bin/guestbook_alumni.pl";
$date_command = "/usr/bin/date";
I'm quite sure that the paths are listed incorrectly, but Matt instructs me to use the variables as follows:
$guestbookurl: url address of the guestbook file
$guestbookreal: system locatino of the guestbook file (my web host said my system location was d:\inetpub\wwwroot\jewishchildcareny.org\
$guestlog: system location of guestlog file
$cgiurl: the url portion of the address to the script file
Does anyone have any insight on why I may be getting this error? Is this a permissions problem? I uploaded the script in Dreamweaver.
Thanks very much for your thoughts.
In testing now, I see the following error after the form is submitted:
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:
The system cannot find the path specified.
The system cannot find the path specified.
Can't Open d:inetpubwwwrootjewishchildcareny.orglumni est120l_guestbook_test.asp: Invalid argument
The modified section of the script currently reads as follows:
$guestbookurl = "http://www.jewishchildcareny.org/alumni/test120/al_guestbook_test.asp";
$guestbookreal = "d:\inetpub\wwwroot\jewishchildcareny.org\alumni\test120\al_guestbook_test.asp";
$guestlog = "d:\inetpub\wwwroot\jewishchildcareny.org\alumni\test120\guestlog.html";
$cgiurl = "http://www.jewishchildcareny.org/cgi-bin/guestbook_alumni.pl";
$date_command = "/usr/bin/date";
I'm quite sure that the paths are listed incorrectly, but Matt instructs me to use the variables as follows:
$guestbookurl: url address of the guestbook file
$guestbookreal: system locatino of the guestbook file (my web host said my system location was d:\inetpub\wwwroot\jewishchildcareny.org\
$guestlog: system location of guestlog file
$cgiurl: the url portion of the address to the script file
Does anyone have any insight on why I may be getting this error? Is this a permissions problem? I uploaded the script in Dreamweaver.
Thanks very much for your thoughts.