FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!

Beware of Windows CR/LF characters !




A great way to make your cgi script fail is to upload it equipped with Windows type CR/LF settings.
If you see something like this in your web servers error log ...



... then it is time to change the CR/LF settings of your file to linux format. Shame on you



1 blog comments below

But wouldn't the converse be true if you were running on a Win server and had it set up for unix (LF only)? If you write scripts in Python, then I believe you would seldom have a problem with reading, since Python is supposed to automatically adjust to either standard -- as long as it's consistent within any one file! For writing, Python does default to whatever the system setting is. For a desktop system, that almost surely will agree with the type of system Python is running on. I don't know about servers, but probably it would also match the standard for the OS unless an administrator set it differently.
SonLight on Tue Jul 19, 2016 6:01 am



FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.