in reply to Sciprt killing my server
I suspect you are getting compile-time errors, at a first glance there are some syntax errors that will prevent your code from compiling. The two most obvious errors I can see right off the bat are the misspelling of the :standard flag in the "use CGI qw~:standar~;" line and the missing semicolon after "use DBI".
But don't take my word for it, take perl's word for it. I would start by attempting to run the script in your local Perl environment (if you are on a PC and don't have a local Perl, download it from ActiveState) and eliminating compilation errors first, before you even upload to your hosting provider. Since you're using CGI.pm, that will be a lot easier to debug locally.
Two other things that will help you immensely are adding the -w and -T flags to your #! line, and adding use diagnostics; while you are syntax checking.
Good luck!
|
|---|