I'm having difficulties believing this question hasn't been asked before, but I couldn't find anything relevant.
Occasionally, when uploading a rather large PHP script, I receive a fatal error similar to something like:
Parse error: syntax error, unexpected $end in [file] on line [line]
A quick refresh later and the error of course disappears as the upload completes. A simple solution is to switch my FTP client's transfer mode to binary, but that seems a bit strange as the script is ASCII.
I'm accustomed to uploading ASP.NET files over plain text, where the server simply waits until the transfer is complete before delivering the page.
What's best practice?