Online is very free of charge, PHP personal home home is now a lot, sometimes it is going to upload, but after all, it is free, of course, there will be many restrictions, not allowed to upload, this is normal, some even Mail () The function is not used. In this case, it is not a way to upload, PHP supports powerful socket, of course, can not directly operate FTP, look at the function table, and upload it through FTP. Not very good, do we go upload the home page not uploaded with FTP?
The implementation code is as follows:
//upload.php