I have a simple script that opens a file and concatenates a line of text to the end of the file before closing it again. The script works fine when used from the command line on my PC. But when I call the file form an HTML Page the script dosn't work - nothing gets written to the file.
HTML Code (addNewsItem.html):
<FORM ACTION="scripts/addNewsItem.pl" METHOD="POST">
Perl Code (addNeswItem.pl):
use CGI::Carp "fatalsToBrowser";
$string="Today there was a car crash on the I5";
open(OUTPUT,">>$outputFile") || die("Cannot Open File");
print OUTPUT "$string";
There is more in both files but I guess this is the bones of the source....