Thread: Perl help
View Single Post
Old 06-12-2003, 07:34 AM  
neighborhood_bob
Registered User
 
Join Date: Jun 2003
Posts: 83
Even more basic...did you edit the script?
If so, you need to use a text editor that keeps
the ASCII formatting intact (wordpad doesn't do this by default.)
Make sure "word wrap" is OFF.
Upload in ASCII mode with your FTP client.
CHMOD files 755.

If you don't want to invoke the CGI module,
Creata a blank text file in notepad, name it error.txt, and
upload it into your main HTML directory.
Then add this code to the top of your script directly below the
shebang-

BEGIN {
open (STDERR, ">/path/to/error_file/error.txt");
}

replace the path with the server side path to the text file.

Then just open error.txt in browser to get more complete
error messages.

GL
neighborhood_bob is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote