Canreef Aquatics Bulletin Board  

Go Back   Canreef Aquatics Bulletin Board > Other > Lounge

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #7  
Old 08-21-2001, 03:34 AM
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,

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.
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 05:38 PM.


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