When i close the curl then it will give me warning and how i will receive data which i send using curl.here is my code.variable $data contain my URL where i want to send my data.any one can help me?
<?php
$ch=curl_init($data);
curl_setopt ($ch, CURLOPT_POST, 1);
curl_setopt ($ch, CURLOPT_POSTFIELDS, "url=http://mydomain.com/newc/index.php");
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, TRUE);
$returndata=curl_exec($ch);
echo $returndata;
curl_close($returndata);
?>