in reply to Can't create file
In short, what you're doing is a bad, bad idea. You will need to sanitize the $domain input because otherwise, anybody can overwrite any file on your server that your webserver has write permissions to.
Variables are not magical under Perl CGI, so you best start off by reading CGI when writing a CGI script. You will need to accept the variables from the CGI module and then handle them in your program. But again, you shouldn't modify your system just by accepting input from a web page, even if that page is only accessible from a "secure network".
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Can't create file
by sluttysysadmin (Initiate) on Oct 05, 2009 at 15:50 UTC |