Your Weekly Horoscope (Extended)

Welcome to your weekly horoscope page! Below is your personalized Weekly Horoscope


“;
// echo “Click Here
“;

$url = “http://indastro.com/weekly-horoscope/”;
// echo “success”;
$signtext = print_sign($_GET[‘sign’]);
$url = $url.$signtext.”-horoscope.html”;
// echo $url;

/*
$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( ‘/width=”121″ height=”121″ align=”left” style=”margin-right:10px;”/’ , $contents );

$aftertable = $arr[1];

// echo $aftertable;

$aftertable = preg_split( ‘/TABLE cellSpacing=2 cellPadding=3/’ , $aftertable );

$horoscopetext = $aftertable[0];

echo $horoscopetext;

}
?>

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


Login for existing accounts