PHP Classes
elePHPant
Icontem

File: ahoro.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of George Clarke  >  AHoroscope  >  ahoro.php  >  Download  
File: ahoro.php
Role: Auxiliary script
Content type: text/plain
Description: used with ahoroscopeAjax.php
Class: AHoroscope
Get today's horoscope from astrology.com
Author: By
Last change:
Date: 8 years ago
Size: 623 bytes
 

Contents

Class file image Download
<?php
// This script is used with the ahoroscopeAjax.php script.
// It gets passed the sign in 's' and uses the ahoroscope class file
// to extract the horoscope and return it as a string in $h.
//
// The possible values for the 's' are:
// capricorn
// aquarius
// pisces
// aries
// taurus
// gemini
// cancer
// leo
// virgo
// libra
// scorpio
// sagittarius

if(isset($_REQUEST['s'])){
include
"class.ahoroscope.php";
$sign=$_REQUEST['s'];
$hs=new ahoroscope();
$h=$hs->getHoroscope($sign);
print
"<b>Horoscope for $sign:</b><br>$h";
}else{
print
"Not Found";
}
?>