PHP programs that Upload binary files in text mode, read PHP programs that Upload binary files in text mode, and some websites will automatically add Content-type before files when uploading files: image/gif header, causing damage to the binary file. Therefore, I have compiled a PHP program for uploading binary files in text mode. There are two files in total: index "> <LINKhref =" http: when files are uploaded on some websites, header labels such as Content-type: image/gif are automatically added to the front of the file, the binary file is damaged. Therefore, I have compiled a PHP program for uploading binary files in text mode.
There are two files in total: index. php and action. php. Change the file name to test. put the two files together and run index. php, select read, Copy all the data read, run this program on the remote server, Paste to the input box, and choose save. The binary file is uploaded.
Index. php
---------------------------------------------------------
PHP program for uploading binary files in text mode
---------------------------------------------------------
Action. php
---------------------------------------------------------