Location: PHPKode > scripts > Qiblah Direction Calculator > qiblah-direction-calculator/test.Qblah.php
<?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      : hide@address.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>";

?>
Return current item: Qiblah Direction Calculator