Unfortunately, this isn't the problem:
the file is fine as long as I don't save it in my text editor.
Doesn't anyone have a clue?
I get the same thing on two seperate servers...
Thanks anyways! (Parksie)
Grtz.,
Printable View
Unfortunately, this isn't the problem:
the file is fine as long as I don't save it in my text editor.
Doesn't anyone have a clue?
I get the same thing on two seperate servers...
Thanks anyways! (Parksie)
Grtz.,
what are you saving the file as?
I've saved the file as:
MSDOS text;
ANSI;
Unicode;
Unicode big endian;
UTF-8...
and God knows what, but nothing worked! :(
Thanks!
Grtz.,
whn you save, save it as whatever.pl or .cgi
don't save it as asci or text or anything else.
What editor are you using? If it's notepad, then are you saving the file as "filename.pl" or "filename.cgi" as "All Files" with ANSI encoding?
If not, you should be, because I have Win2k, and when I use those settings with my scripts, it works fine.
Thanks, man!
But I'm afraid this doesn't cut it for me... :( Because I've tried that already.
Anyways, are you also with free.prohosting.com? I've it tried there...
Thanks for your time!
Da Byte
Are you uploading the file in Ascii or binary mode?
I just signed up for a prohosting account, but right now I'm trying to find the path to perl...
I found the right path to perl, but I still can't run my scripts. I think it's a problem with prohosting.
are you guys uploading the scripts to a cg-bin folder? and chmod them to 755
Yes...
sounds like you need to contact prohosting.
Most definitasiously!
But as I've said before: it's not an uploading problem, since a NOT-saved script, uploaded in the same way, WILL run. :(
Prohosting has #!/usr/bin/perl, I thought...
Thanks for all the help nevertheless!
Grtz.,
Da Byte
well if you are using notpad and saving it as .cgi or.pl and then uploading it in Asci and chmod it to 755, then it should work. notpad doesn't change anything that would not make it work.
what are you changing in the file when you have to save it?
I use win2000 and notepad at work and it saves just find with perl files.
Oh, sorry!
Once I have normal line breaks (instead of those little blocks), the damage has been done.
You know: take a file with the blocks and throw it into Wordpad, then copy to Notepad ...
Or write your own file in Notepad ...
And the damage is done!
Thanks for everything, m8s!
Grtz.,
Da Byte
Makes sense. Unix recognizes new lines differently than Windows does.
And still my question isn't answered :(
Isn't there anyone out there with this experience? That Windows Wordpad ****s up the format even when you only cut 'n' paste from it?
Thanks for all the help, though!
Grtz.,
yeah............ don't use wordpad :)
actually if I get those little blocks I will upload (ftp) it in whatever format then dowload it back to my computer in ascii, always gets rid of those blocks, then I edit it.
HAHA! :)) Did you see the censoring of the word f u c k in my last post? LOL!
Now that's a useful suggestion, Scout...
I'm not sure it will rid me of the problem, though :( But will try!
Anymore suggestions?
Maybe: don't use IE to do ftp for instance?
Thanks a bunch, all!
Grtz.,
HAHA! :)) Did you see the censoring of the word f u c k in my last post? LOL!
Now that's a useful suggestion, Scout...
I'm not sure it will rid me of the problem, though :( But will try!
Anymore suggestions?
Maybe: don't use IE to do ftp for instance?
Thanks a bunch, all!
Grtz.,