PHP Uploads Result in Corrupt Files
March 5, 2008 1:35 PM Subscribe
PHP gurus unite! Tell me why my PHP uploads always result in corrupt files and what I can do to fix it!
posted by charlesroper to Technology (28 answers total)
I've installed PHPWEBFTP
on my website. I followed all of the installation instructions and can connect to my FTP server through the script. I can even upload and download files. The only problem is that any file that is either uploaded or downloaded via this script becomes corrupt. What gives?
This script is hosted on a dedicated server owned by The Planet .
You can try it yourself at https://store.gkmachine.com/secureftp2/
For kicks, I uploaded the exact same script to another webserver (owned by Dotster) and it worked flawlessly. Uploads/downloads were not corrupted if I accessed the script on this webserver.
This leads me to believe that it's a setting in either php.conf or httpd.conf on The Planet server - endless searches have left me puzzled and frustrated.
Any help is much appreciated. Thanks!