Login   Register  
PHP Classes
elePHPant
Icontem

File: test.Qblah.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Dr Ahmed Elsheshtawy  >  Qiblah Direction Calculator  >  test.Qblah.php  >  Download  
File: test.Qblah.php
Role: Example script
Content type: text/plain
Description: Qibla Class Small Test
Class: Qiblah Direction Calculator
Determine the Qiblah direction
Author: By
Last change:
Date: 2009-01-14 12:13
Size: 1,547 bytes
 

Contents

Class file image Download
<?php
// ----------------------------------------------------------------------
//Copyrights © 2009 Mewsoft Corp. All rights reserved.
//Program Author   : Dr. Ahmed Amin Elsheshtawy, Ph.D
//Home Page          : http://www.islamware.com, http://www.mewsoft.com
//Contact Email      : support@mewsoft.com
//Products               : Auction, Classifieds, Directory, PPC, Forums, Snapshotter
// ----------------------------------------------------------------------
// LICENSE
// This program is open source product; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public License (LGPL)
// as published by the Free Software Foundation; either version 3
// of the License, or (at your option) any later version.

// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Lesser General Public License for more details.

// You should have received a copy of the GNU Lesser General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.
// ----------------------------------------------------------------------

    
require_once(dirname(__FILE__)."/Qiblah.class.php");
    
    
$origin_latitude 30.1;
    
$origin_longitude 31.3;

    
$qiblah = new Qiblah();
    
$direction $qiblah->getDirection($origin_latitude$origin_longitude);
    echo 
"Qiblah direction is : $direction degrees from north clocklwise\n<br>";

?>