Hi, all...not sure if this is the right forum, but here it goes.
I need some help deciphering what my new web host company Go Daddy told me about the usage of PHP cURL from their hosting servers.
I currently run some basic cURL in another site (on another web host) successfully. I once ran the same cURL code from another site, another web host. Now, I have a new domain and the above new web host running the same cURL code.
When I execute the PHP cURL function (see code below), I get a "CURL Response: couldn't connect to host". Upon emailing the web host, they replied:
Thank you for contacting Online Support. We support cURL extensions on all of our Linux hosting plans.
Please note that proxy servers are not required for outbound shared hosting connections as of September 10, 2008. Although it will continue to function after this date, we recommend code utilizing proxy servers be updated to reflect this change. Unfortunately, we do not provide technical support with third-party scripting issues. We are very limited in the support we can offer for customer-written code or scripts. If there is evidence that our system is responsible for the error, please forward it to us, and we would be happy to look into the matter further. But at the moment this does not appear to be the case, so we regret we can not assist you further with this issue.
Please, if anyone can explain in plain english what this means...I don't have a LOT of cURL experience. Here is the cURL code I use:
$location = "ftp://somedomain.com/";
$textfile = "inventory.txt";
$fh = fopen($textfile, "w+");
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "$location$textfile");
curl_setopt($ch, CURLOPT_USERPWD, "userid

assword");
curl_setopt($ch, CURLOPT_FILE, $fh);
curl_exec($ch);
echo "CURL Response: ".curl_error($ch)."\n";
curl_close ($ch);
Thank you in advance...
Getmea - John