<?php function curl($url,$postFields=null){ $ch=curl_init(); curl_setopt($ch,CURLOPT_URL,$url); curl_setopt($ch,CURLOPT_FAILONERROR,false); curl_setopt($ch,CURLOPT_RETURNTRANSFER,true); //if($this->readTimeout){ curl_setopt($ch,CURLOPT_TIMEOUT,300);…