Just want to show current gold rate from Gold Price India (http://www.goldpriceindia.com/) using PHP.
I have done to get data using file_get_contents() method. But its working on localhost but not in server. I want this on my FTP server too.
My Code:
$url1 = 'http://www.goldpriceindia.com/gold-price-kolkata.php';
$content1 = file_get_contents($url1);
$first_step1 = explode( '<div class="prc">' , $content1 );
$gold_rate1 = explode("</div>" , $first_step1[1] );
I am using PHP, I hope my question is clear if not I ready to explain again.
Thank You.