$tarih = date("Y-m-d");
function getFontData($url)
{
$user_agent = 'Mozilla/5.0 (Windows NT 6.2; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0';
$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$data = curl_exec($ch);
curl_close($ch);

// Use regular expressions to match all font data.
preg_match_all("/(.*?)<\/font>/i", $data, $matches);

return $matches[1];
}


getFontData('http://www.malatyaeczaciodasi.org.tr/nobetci_eczaneler.php?tarih='.$tarih.'&get_param=');
$icerik = file_get_contents($link);
echo getFontData('http://www.malatyaeczaciodasi.org.tr/nobetci_eczaneler.php?tarih='.$tarih.'&get_param=');
?>