Parse error: syntax error, unexpected T_VARIABLE
When uploading themes especially in WordPress I sometimes get this error:
WordPress – Parse error: syntax error, unexpected T_VARIABLE
My solution is check FTP settings are to binary transfer.
In FileZilla 2.2.32, go Edit > Settings > File transfer settings > ASCII/Binary. Set it to always binary: that should do the trick.
In FileZilla 3.5.0 the setting is in Edit > Settings > Transfers > File Types > Default transfer type > Binary.