Code: Select all
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, $params);
curl_setopt($curl, CURLOPT_TIMEOUT, 30);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_PORT, 8087);
curl_setopt($curl, CURLOPT_VERBOSE, true);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
$response = trim(curl_exec($curl));
Some weird thing is, the use of it is fine over a local environment, but when I try to run this over the dedicated server this doesn't work, the error code is the next one: "Fatal error: Maximum execution time of 120 seconds exceeded in". I repeat, the code works in local environment (pointing to the hosting) but not in the hosting in self.
We are out of ideas at this moment, we tryed diff ports/configurations and nothing works. PMserver is running and listening on the 8087 port.
Thanks in advance.-