y, my first thought also was that the php file should be put across as text .. can you post the line of the php file that gives the parse error? That might show how the file was changed.. Actually, even better--can you diff the php file that was put up via Net::FTP against a good version that you put up there with WS-FTP?