Requirements
1. I need a php script written that will ftp to this site
"<ftp://cwrimages:imagescwr@[login to view URL]>"
2. navigate to this directory
"./images"
3. and create a txt file of all the image files in the directory.
4. The output txt file needs to be placed on my server at
"/home/content/s/t/e/steve1040/html/backroom/"
5. My host provider is a Godaddy reseller and Godaddy only allows the use of Curl for this type of task.
Godaddy also uses proxy. The below code has been verified and does work for connecting to another server from Godaddy servers.
Your code must include this
I will provide ftp username and pass to winning bidder only
$ch = curl_init();
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt ($ch, CURLOPT_HTTPPROXYTUNNEL, TRUE);
curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
curl_setopt ($ch, CURLOPT_PROXY,"<[login to view URL]>");
curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt ($ch, CURLOPT_URL, $URL);
curl_setopt ($ch, CURLOPT_TIMEOUT, 120);
curl_setopt ($ch, CURLOPT_FILE, $fh);
curl_exec ($ch);
Note: Any bid without an amount will be iqnored.
This project is complete when 5 of 5 requirements are complete.