Zoho CRM API using by PHP

Zoho CRM API using by PHP

Thank you for the great products as Zoho CRM. 
I have a question about Zoho CRM API 

I have received the  sample code of using API in terms of PHP. 

/*sample code*/
header("Content-type: application/xml");
$token="MYTOKEN";
$param= "authtoken=".$token."&scope=crmapi";

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $param);
$result = curl_exec($ch);
curl_close($ch);
echo $result;
curl_close($ch);
/*sample code*/

I could not receive the XML data on the web site however after I used the this url as " https://crm.zoho.com/crm/private/xml/Leads/getRecords?authtoken=MYTOKEN&scope=crmap" , I have received xml data. 

Please let me know the problem of the sample code. 

Junya