Your Daily Horoscope (Extended)

Welcome to your daily horoscope page! Below is your personalized Daily Horoscope


“;
// echo “Click Here
“;

$url = “http://indastro.com/horoscope/index.php?zone=1&sign=”;
// echo “success”;
$signtext = print_sign($_GET[‘sign’]);
$url = $url.$signtext;

/*
$handle = fopen($url, “rb”);
echo “Success!”;
$contents = ”;
// while (!feof($handle)) {
$contents .= fread($handle, 18192);
// }
fclose($handle);

echo $contents;

*/

// create curl resource
$ch = curl_init();

// set url
curl_setopt($ch, CURLOPT_URL, $url);

//return the transfer as a string
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

$useragent=”Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1″;

curl_setopt($ch, CURLOPT_USERAGENT, $useragent);

// $output contains the output string
$contents = curl_exec($ch);

// close curl resource to free up system resources
curl_close($ch);

// $output = strip_tags($output, ‘

‘);

$arr = preg_split( ‘/TABLE width=”100%” border=”0″ align=”center” cellpadding=”0″ cellspacing=”0″/’ , $contents );

$aftertable = $arr[1];

// echo $aftertable;

$aftertable = preg_split( ‘/\/table/’ , $aftertable );

$horoscopetext = $aftertable[0];

echo ‘

‘;

}
?>

Receive Free Predictions for Special Life Events, Horoscopes, Daily Transits and Much More!


Login for existing accounts

Translate »