Memperkenalkan the so-called #TopSecretProject lah. It’s actually a tweet alert which’ll send out tweets bila dah masuk waktu solat fardhu on daily basis. Data waktu solat fetched from JAKIM’s website http://www.e-solat.gov.my/.
It’s actually a simple PHP script connected to Twitter via OAuth, it’ll do a simple checking of current time against the data stored in MySQL database. In order to identify whether the current time is Subuh, Zuhur, etc, I did a checking based on range of time for each sets of solat fardhu using function CheckTime() written by Patrick H. (patrickh@gmail.com). Function can be found at his personal blog.
The idea is to setup twitter alerts for major towns in Malaysia. For now, I’ve started creating 5 twitter accounts to cover Kuala Lumpur, Melaka, Ipoh, Pulau Pinang, & Kuantan. From time to time, I’ll be adding the other areas as well.
Below is the list of covered areas (striked-through) & to be covered.
Feedbacks are welcomed.
- WP Kuala Lumpur
- Melaka
- Ipoh
- Pulau Pinang
- Kuantan
- Kuala Terengganu
- Kota Kinabalu
- Perlis
- Johor Bahru
- Kota Bharu
- Alor Setar
- Kuching
- Labuan
- Seremban
Credits to @raficyber & @dewmandew for their help.
![]() |
![]() |
![]() |
![]() |
![]() |
bos nnt dah siap semua saya nak copy letak kat blog saya yer.
Tq
salam,
bleh share x f unction CheckTime() tu? link reference broken.
wsalam. rasa owner code tu dah tak renew hosting dia kot. saya dah buat posting baru kat sini share function tu. bole tgk kat http://www.mohdneotech.com/v3/2011/08/23/function-checktime/