Whenever i tried to use this code i get "Fatal error: Call to undefined function curl_init() in D:\xampp\htdocs\test\DomainCheck.php on line 10" this error. This time i'm using simple example from http://www.php.net/manual/en/book.curl.php but again get same error. Can you help about this error why i'm getting it.
Looks like you haven't enabled the curl extension. Check this: http://www.php.net/manual/en/curl.installation.php
you are using xampp. check for the version you have, update with latest version. curl extension should be there and enabled
yes that is disabled curl extension error message. Just find ;extension=php_curl.dll and remove ; to activate in php.ini