in reply to perl/cgi question: script works from unix command line, but not web page
When opening files it is a good thing to check to see if they actually opened or not.#!/usr/local/bin/perl -w use strict;
The webserver will most likely be running under a different user then yourself and will have to have access to the files your are opening and modifing.open(FH, "<file.txt") or die "Could not open file.txt: $!\n";
|
|---|