Greetings Monks, I'm developing a group of perl scripts that basically walk a user through setting up a website using flat file databases. (MySQL will come later) The basic command line scripts work just fine, but when I run it all through a web server, the script cannot open(FILE, ">MyFile"); My suspicion is that the script does not have permissions to create files when called by the web server. I think I need to know how to have perl use sudo, but I may be completely off course. Ether way, I can't seem to get it to work. I've been looking all day and have not had any luck in finding the solution to this problem. Any and all help is appreciated, and thank you!
... sub WebPassWrite { my $Pass = shift; open(PAS, ">hf"); print PAS $Pass; close(PAS); my $HTML =""; $HTML .= "Password Stored<br><div class=\"MenuItem\" " ."onclick=\"SetupPassCheck(['Page'],['Title','Content'])\">" ."Continue</div>"; return $HTML; } ...
In reply to CGI script cannot create file. by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |