Page 1 of 1

ASCII files being uploaded incorrectly

Posted: Sat Sep 24, 2011 8:41 am
by JamesChurchard
Hi,

I am working on a website where I was using PHP's GD library to generate images. However, whenever I saved the script using the built-in editor the page would show up blank - no errors from PHP were output. Uploading the script using a different FTP client caused the script to perform normally.

I have had issues like this in the past, and I suspect that SmartFTP is uploading the file using UTF-8 encoding, despite me having disabled that. (Transfer -> Code Page)

Is this some kind of bug, or is there another thing I need to do when uploading these type of files?

Re: ASCII files being uploaded incorrectly

Posted: Sat Sep 24, 2011 4:25 pm
by mb
Upload the files in binary mode. The Transfer -> Code Page has no effect on how files are transferred.