I am working with a form that allows you to upload files through a local folder and FTP. So I want to move files through ftp (which already works)
Due to performance reasons, I chose this process to run in the background, so I use nfcftpput (linux)
In the CLI, the following command works just fine: ncftpput-bu name -p password -P 1980 127.0.0.1/upload//home/Downloads/upload.zip
(knowing that the b parameter starts the background process) But if I run it through PHP, it does not work (without the -b parameter)
PHP code:
$cmd = "ncftpput -b -u name -p password -P 1980 127.0.0.1 /upload/ /home/Downloads/upload.zip";
$return = exec($cmd);
source
share