![]() |
#7
|
||||
|
||||
![]() Hello Titus,
Sounds like you are on a unix system of some sort (right ?). I guess the program still can't see the file. Try this code : 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; use DirHandle; $d = new DirHandle $DATA_PATH; if (defined($d)) { print "<BR>Good Data Path"; } else { print "<BR> Bad Data Path"; } while (defined($_ = $d->read)) { print $_ . "<br>"; } exit; } if (!-e .... This should tell you if you have a bad path or not. It should also tell you if you are looking at the right directory (i.e. it prints out the directory for you). The good news is that I tried out your clubschedule code on my machine and it works fine. Hope that helps. |