How to select a storage path for ftp

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.