Based on your information, I'd say this line is the culprit:
open(TEMPFILE,">$tempfile") || die "Can't find this temporary file what is wrong. \n";
This basically says, open $tempfile for (over)writing, or stop (die). The error message is not very helpful though, for I bet it's a file permissions problem ;) $tempfile is defined as:
$tempfile="c:\\webserver\\osarr.org\\www\\member\\bboard\\bb.html";
And later on I read:
rename("$tempfile", "$bbfile");
So, basically, your script opens a file ($tempfile), writes something to it, and renames it to $bbfile. After that, (when the script runs again) $tempfile is gone (you already renamed it) so Perl tries to make a new file, which probably fails due to the lack of permissions. Make sure that the user under which the web-server runs, has write permissions in c:\webserver\osarr.org\www\member\bboard\
To double check this permissions problem, you might want to change the not-so-helpful error message into something like:
open(TEMPFILE,">$tempfile") || die("Can't open $tempfile: $!");
HTH
In reply to Re: Having trouble with a Discussion Board
by b10m
in thread Having trouble with a Discussion Board
by Ineedhelpplease
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |