Upload the file in ascii
Download it in binary
upload it in ascii
This seems like it would get you the same result as uploading it in binary in the first place?
If the file has DOS newlines on your side to start with...
Code:
1. Upload the file in ascii
\n becomes \r\n in the file
2. Download it in binary
Downloads the \r\n copy of the file
3. upload it in ascii
\r\n becomes \n in the file
or vice versa.
The biggest difference I've seen between shared hosting versus a VPS, is that with a VPS you can control which software is installed and how the server is configured.
I've had shared hosts in the past with annoying restrictions in place, like with mod_security set up in a way that any URL containing "about" was met with a Forbidden apache error (including "/about.html", which I imagine would be a common URI on a lot of websites)...
And another time I was on a shared host that wouldn't allow e-mail to be sent unless your script authenticated with a user/pass you set up in yer cPanel... which is unreasonable for a lot of apps out there (what forum software for example lets you configure a user/pass for sending mail? most software I've seen just lets you choose between SMTP or /sbin/sendmail... but on this one web host, neither method worked without authentication).
Being a VPS though you should be in control of what software is installed, although things like Plesk might like to take over the whole operating system (I know cPanel behaves like this, it likes the whole server to be run "its way" and modifying anything by hand usually doesn't last very long before it changes things back).
Kirsle.net | My personal homepage
Code:
perl -e '$|=$i=1;print" oo\n<|>\n_|_";x:sleep$|;print"\b",$i++%2?"/":"_";goto x;'