FTP Trashes My File!
Posted on 2004-11-10
I'm having a weird problem with a CGI script I'm trying to run on an Apache server. The script runs fine on the server, but whatever I've tried doing to pull the file down trashes it completely. The file is full of the source code which is surrounded by gibberish, mostly the symbols "^@".
Now before you give me the newbie answers, think about why this is a 200 point question. I've been in web development for almost 10 years. Yes, I'm downloading the file as ASCII. I've pulled via ftp, sftp and I've ssh'd into the system and pushed it, and it still happens. Thinking it was a Windows thing, I've tried keeping the entire file in a UNIX environment (well...OS X Unix, anyway) and nothing seems to work. I can't pull it down without this corruption occurring.
Can anyone think of something I might be missing?