Jump to content

cURL taking too much time to execute in prestashop


Recommended Posts

Hi friends,

 

I have used cURL code in my prestashop but it is taking too much time to execute that code. I talked with the hosting server and they are telling that the problem is in coding. But same code i have written on different server but its not taking time to execute. I don't know how to solve this problem. Please help me to solve this issue. Below is code....

 

 

<?php

 

//INIT

$ckfile = tempnam ("/tmp", "CURLCOOKIE");

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, 'MY WEBSITE NAME');

curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

 

$output = curl_exec($ch);

print_r($output);

$info = curl_getinfo($ch);

curl_close($ch);

 

?>

 

Thank you

Link to comment
Share on other sites

×
×
  • Create New...