Is it possible to download the files in a directory using curl in PHP?
Jump to Post
Yes, you can. Through the FTP protocol. Here's a sample directory listing, then with regards to downloading the contents, you can use ftp commands to download the contents after parsing the directory list
$curl = curl_init(); $ftpURL = "ftp://localhost/" $ftpUsername = "username" $ftpPassword = "password" …
All 2 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.