
September 15th, 2004, 04:31 PM
|
|
Registered User
|
|
Join Date: Sep 2004
Posts: 4
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
Quote: | Originally Posted by Mobile-Empire What do you mean save it in Unix mode? I've chmod to 755 as the server am uploading to is a Linux |
No, I mean a different thing. For example, if you use Windows Notepad to edit a text file, it writes that file ending each line with hex 0d0a (DOS mode). This is not good for Unix Perl, because it wants just hex 0a (Unix mode) as end-of-line character. Otherwise the script will return you a 500 Intenal Server Error.
If this is the case, you should use a different editor with the option to save your file in Unix mode (like TextPad and many others).
After you have saved your script in Unix mode, upload it as binary file, then change again the permission to 755 (just to be sure  ) and try.
By the way, sometime the FTP client could make this conversion, so be sure to set it to 'binary' transfer, not ASCII/text.
I hope this may solve your problem.
|