You’re trying to upload something other than a text-based file while using
(ftp_put($conn_id, $remote_file, $localfile, FTP_ASCII))
You should be using FTP_BINARY
instead of FTP_ASCII
since movies (and images) are binary files.
More Related Contents:
- PHP: How do I read a .txt file from FTP server into a variable?
- Download file via PHP script from FTP server to browser with Content-Length header without storing the file on the web server
- SFTP from within PHP
- Transfer in-memory data to FTP server without using intermediate file
- PHP ftp_put fails
- List and download clicked file from FTP
- How to get files in FTP folder sorted by modification time
- PHP – Multiselect require field if option is selected [closed]
- Replace preg_replace() e modifier with preg_replace_callback
- Why would one omit the close tag?
- How should I choose an authentication library for CodeIgniter? [closed]
- Correct way to use LIKE ‘%{$var}%’ with prepared statements?
- Redraw google chart based on user input via AJAX request
- How to pass data to all views in Laravel 5?
- PHP output showing little black diamonds with a question mark
- Multiple Image Upload PHP form with one input
- Escaping single quote in PHP when inserting into MySQL [duplicate]
- SQLSTATE[HY000] [2002] Connection refused within Laravel homestead
- How to check if time is between two times in PHP [duplicate]
- PDO PHP Fetch Class
- How to enable memcache in WAMP
- Laravel pagination pretty URL
- How to re-save the entity as another row in Doctrine 2
- How effective is the honeypot technique against spam?
- PHP – Merge two arrays (same-length) into one associative?
- How to use open id as login system
- PHP mailer multiple address [duplicate]
- syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING [duplicate]
- What is the difference between Switch-Case and If-Else in PHP?
- Using scandir() to find folders in a directory (PHP)