Click to See Complete Forum and Search --> : Transloader? HELP!
mdbg.new.suffix
02-24-2003, 05:15 PM
How do you go about making your own CGI script and running it? I've tried running just about a dozen CGI scripts on my server, chmod'ing them to whatever they need (755, etc.) but I still get a 500 error. What I want to end up doing is have a form's data saved to a text file on the server. Another webpage will then use the information stored in the text file via a SSI command and display it just like it was hard-coded in. Is there a way to do that? Also, is there a plain, run-of-the-mill script that will allow any file to be uploaded? Any help on this would be greatly appreciated.
jeffmott
02-24-2003, 07:28 PM
mdbg.new.suffix
...but I still get a 500 error
First you should make sure you've already read the script's README and made any configuration changes. Otherwise, there are many things that may cause this. Without seeing the error message we have no way of knowing the problem. Add the following line to the script (assuming it's Perl) to display the actual error.use CGI::Carp qw{fatalsToBrowser};
there a plain, run-of-the-mill script that will allow any file to be uploaded?
The CGI module has routines for parsing input form data and handling file uploads. Read the CGI.pm documentation (http://www.perldoc.com/perl5.8.0/lib/CGI.html) for more on how to do this.