How can I select a storage path through ftp? I use curl.
$ Curl = curl_init ();
$ Target_ftp_file = 'ftp: // 192.168.1.60/p/a.rar '; // complete path
Curl_setopt ($ curl, CURLOPT_URL, $ target_ftp_file );
Curl_setopt ($ curl, CURLOPT_RETURNTRANSFER, 1 );
Curl_setopt ($ curl, CURLOPT_VERBOSE, 1 );
Curl_setopt ($ curl, CURLOPT_FTP_USE_EPSV, 0 );
Curl_setopt ($ curl, CURLOPT_TIMEOUT, 300); // times out after 300 s
Curl_setopt ($ curl, CURLOPT_USERPWD, 'AAA: aaa); // FTP user name: password
How can I select a save path?
Reply to discussion (solution)
Nobody knows? Or not?
Online Solutions: why can ftp sites download and save local computers? What exactly is it used?
Are you uploading or downloading?
Are you uploading or downloading?
Download
Dizzy, or not!
$ S = curl_exec ($ curl );
Filr_put_contents (file name ', $ s );
$ Curl = curl_init ();
$ Target_ftp_file = 'ftp: // 192.168.1.60/p/'; // complete path
Curl_setopt ($ curl, CURLOPT_URL, $ target_ftp_file );
Curl_setopt ($ curl, CURLOPT_RETURNTRANSFER, 1 );
Curl_setopt ($ curl, CURLOPT_VERBOSE, 1 );
Curl_setopt ($ curl, CURLOPT_FTP_USE_EPSV, 0 );
Curl_setopt ($ curl, CURLOPT_TIMEOUT, 300); // times out after 300 s
Curl_setopt ($ curl, CURLOPT_USERPWD, 'AAA: aaa'); // FTP user name: password
$ Info = curl_exec ($ curl );
$ A = file_put_contents('a.rar ', $ info );
Sorry, the community has stopped network today.
No. The Save box cannot be displayed. The ftp class I use is not supported either.