I try to upload file from web PHP to shell server and run it with this command (phpseclib)
$sftp->put("$upload", "$imageupload", NET_SFTP_LOCAL_FILE)
It already uploaded but have ^M
in the file
This is my file before upload to server
12345
67890
Then this is file from shell server
12345^M
67890^M
What should I do with this problem? Have the way to use sftp->put
and it's not have ^M
?