Software error:
Can't open file '/default_form.html', reason: No such file or directory at routines.pl line 804, <DBD> line 10.
Here's the sub for the routines.pl file which is a script library:
sub parse_template {
($template, $ret_msg, $db) = @_;
$result = ();
open (FILE, "$template = /default_form.html" or #line 804 die "Can't open file '$template', reason: $!";
while (<FILE>)
{
s/%%ret_msg%%/$ret_msg/ig;
s/%%database%%/$db/ig;
$result .= $_;
}
close (FILE);
return $result;
}
I don't get it... the default_form.html file IS in the /www/ (which is my root directory on my server) and I went ahead a uploaded it five times in a row just to be sure. Every time it overwrites it and shows up as present in this directory. Why do you suppose it says "no such file or directory at routines.pl line 804, <DBD> line 10?
Thanks,
Chuck
Can't open file '/default_form.html', reason: No such file or directory at routines.pl line 804, <DBD> line 10.
Here's the sub for the routines.pl file which is a script library:
sub parse_template {
($template, $ret_msg, $db) = @_;
$result = ();
open (FILE, "$template = /default_form.html" or #line 804 die "Can't open file '$template', reason: $!";
while (<FILE>)
{
s/%%ret_msg%%/$ret_msg/ig;
s/%%database%%/$db/ig;
$result .= $_;
}
close (FILE);
return $result;
}
I don't get it... the default_form.html file IS in the /www/ (which is my root directory on my server) and I went ahead a uploaded it five times in a row just to be sure. Every time it overwrites it and shows up as present in this directory. Why do you suppose it says "no such file or directory at routines.pl line 804, <DBD> line 10?
Thanks,
Chuck