Use PHP to call scp to upload a video file to the target server. After uploading, the video file cannot be played. The original video file can be played normally. The Code is as follows: {code ...} I think this is also the case when I used to upload files over ftp. It can be solved after I change it to binary mode. I suspect it is the same reason ,... use PHP to call scp to upload a video file to the target server. After uploading, the video file cannot be played. The original video file can be played normally. The Code is as follows:
This problem can be solved after the file is uploaded in binary mode. It is suspected that this is the same reason,ssh_scp_send
The function does not set parameters for the upload mode. How can this problem be solved?
Reply content:Use PHP to call scp to upload a video file to the target server. After uploading, the video file cannot be played. The original video file can be played normally. The Code is as follows:
This problem can be solved after the file is uploaded in binary mode. It is suspected that this is the same reason,ssh_scp_send
The function does not set parameters for the upload mode. How can this problem be solved?
Why is scp Used? scp transmission efficiency is not high.
You can use http for transmission and rsync for synchronization. There are many methods available.