Ruben Crespo - 2009-05-28 11:29:09
Hi !!
Great Class man !!
i´ve found this class very useful for one project in which i am working right now.
But I had a little problem when I discover that the URL File-access was Disabled In The client´s Server Configuration.
The solution was to use Curl to get the Youtube´s API XML code
I think that could be useful add this function to your class.
---
in the __construct () function add the line:
$this->feedString=$this->getXmlCodeViaCurl($url);
and now the new function
private function getXmlCodeViaCurl($url){
//init var $returnStr;
$returnStr="";
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HEADER, false);
$returnStr = curl_exec($curl);
curl_close($curl);
return $returnStr;
}