Another possibility, if your local machine is running Windows, is that your script contains MS line breaks, and your new host can't deal with them. The solution to this is to get a text editor (e.g. editplus) that makes these visible, then search and replace.