Canreef Aquatics Bulletin Board  

Go Back   Canreef Aquatics Bulletin Board > Other > Lounge

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 08-20-2001, 10:52 PM
reefburnaby reefburnaby is offline
Member
 
Join Date: Aug 2001
Location: Burnaby, B.C.
Posts: 766
reefburnaby is on a distinguished road
Default CGI expert?

Hello Titus,

I fired up IIS on my machine and installed the script. It seems to work....you might want to check what $DATA_PATH is being interpreted as. Silly things like wrong slash direction ('\' vs '/') can mess it up.

Try adding this to the offending 'if' command...

sub check_files{
$DATA_FILE="$DATA_PATH/$SURVEY_NAME\.srv";
$LOG_FILE="$DATA_PATH/$SURVEY_NAME\.log";
if ( !-e $DATA_FILE){
print "Content-type: text/html\n\n Data File is Missing!\n";
print $DATA_FILE;
exit;

when it dies...you should see if $DATA_FILE is correct. $DATA_FILE should be a path that is valid to the perl interpreter. ie. mine is c:\inetpub\wwwroot\survey\survey.srv.

BTW, %fields is passed through the html form.

Hope that helps.

[ 20 August 2001: Message edited by: reefburnaby ]
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 10:10 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.