I am using this API (https://api.ssactivewear.com/v2/products/) in my script:
ini_set('memory_limit', "300M");
$uri=$end_url.$method;
$ch = curl_init($uri);
$access_key=base64_encode($customer_number.':'.$api_key);
curl_setopt( $ch, CURLOPT_HTTPHEADER, array( 'Authorization: Basic ' . $access_key ) );
curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
$retrive_response = curl_exec($ch);
curl_close($ch);
return $retrive_response;
After few time execution of script i have received an error
Fatal error: Allowed memory size of 314572800 bytes exhausted (tried to allocate 161956814 bytes)