PHP Classes

Differs from other sites

Recommend this page to a friend!

      Salat  >  All threads  >  Differs from other sites  >  (Un) Subscribe thread alerts  
Subject:Differs from other sites
Summary:Hello! The time that i get with your class differs slightly from
Messages:2
Author:mac
Date:2009-08-10 09:33:52
Update:2009-08-10 11:31:24
 

  1. Differs from other sites   Reply   Report abuse  
Picture of mac mac - 2009-08-10 09:33:52
Salam aleikum!
The time that i get with your class differs slightly from other pages offering prayer times:

for example:
City: Baghdad
long: 44.422
lat: 33.325
GMT: +3
date: 2009-08-10

from guideways.com
Fajr: 3:44
Sunrise: 5:20
Dhuhr: 12:09
Asr: 15:51
Maghrib: 18:56
Isha: 20:26

salat.class.php:
Fajr: 3:33
Sunrise: 5:05
Zuhr: 11:51
Asr: 15:33
Maghrib: 18:38
Isha: 20:10

Do you have any ideas why it is like this?


  2. Re: Differs from other sites   Reply   Report abuse  
Picture of Khaled Al-Shamaa Khaled Al-Shamaa - 2009-08-10 11:31:25 - In reply to message 1 from mac
Dear Mac,

I advice you to use the latest version of this library (in case you have server support PHP 5), you can check the following example:

ar-php.org/example-ArSalat-php-arab ...

Calculation for coordinates you provides using new class generate following results:

Fajr: 3:38
Sunrise: 5:10
Zuhr: 11:56
Asr: 15:38
Maghrib: 18:43
Isha: 20:15

For more information:

ar-php.org/index-php-arabic.html

Best regards,
Khaled