PHP’s errors are only useful if it can successfully tell you which line the error occurred on. Unfortunately, different operating systems determine what makes a line in different ways. Make sure that you are using the same line endings on both your workstation and your server. If your server is Unix, tell your text editor to use Unix line endings. Otherwise, the line that PHP tells you the error is on probably won’t be the line you see.