Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Editor creating problems

Status
Not open for further replies.

s3r

Programmer
Jul 13, 2005
1
US
I've never run into this problem before.

I have a perl script running on my development server. When I post the script to the live server it fails with error 500. (Note, my changes were minor in nature ... only dealing with the text that was displayed)

I then reverted to the original script that I had saved a copy of and the server error persists.

There were no other changes.

Any idea what could cause this problem?


 
Question 1: Have you tested the perl scripts with "-c" to syntax check them?
Question 2: Have you checked the log files to get more info on what's failing? "error 500" doesn't help much.


Trojan.
 
Are you moving your files to a *nix box, are you saving your files in Unix format (google dos2unix if it's not a feature available in your editor)?

Unix uses \n, whereas windows uses \r\n, and this causes problems on windows boxes

HTH
--Paul




cigless ...
 
Error 500 suggest's it's a CGI script. What browser are you using? IE caches failures long after you've corrected the problem - a nightmare for developing. Try telnetting to port 80 directly and see what you get.

yours,

f

"As soon as we started programming, we found to our surprise that it wasn't as easy to get programs right as we had thought. Debugging had to be discovered. I can remember the exact instant when I realized that a large part of my life from then on was going to be spent in finding mistakes in my own programs."
--Maurice Wilkes
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top