Curl calls in php
Posted: Fri Jan 15, 2010 4:32 am
we wrote some php code and there are some curl calls in there as shown below.
However, the calls failed as there is nothing returned on production server.
The code works on our development server. I have also check the production server have curl enabled.
The servers are all linux centos 5.0
Any ideas?
Thanks
Code: Select all
function submitString($string2) {
$c = curl_init($string2);
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
$xml = curl_exec($c);
curl_close($c);
return($xml);
}
The code works on our development server. I have also check the production server have curl enabled.
The servers are all linux centos 5.0
Any ideas?
Thanks