I'm getting the error Fatal error: Maximum execution time of 30 seconds exceeded
which is odd because I have the timeout set to 0.
function curl(){
$this->options = Array(
CURLOPT_RETURNTRANSFER => TRUE,
CURLOPT_FOLLOWLOCATION => FALSE,
CURLOPT_CONNECTTIMEOUT => 0,
CURLOPT_TIMEOUT => 0,
CURLOPT_MAXREDIRS => 20,
CURLOPT_USERAGENT => random_user_agent(),
CURLOPT_URL => $this->url,
);
$this->ch = curl_init(); //Initalising curl;
curl_setopt_array($this->ch, $this->options);
$this->data = curl_exec($this->ch); // Executing cURL;
curl_close($this->ch);
return $this->data;
}
Does anyone have an idea what the problem may be?
Many thanks in advance for any responses.