Pencarian
Latest topics
Script PHP Menghitung Mundur
Halaman 1 dari 1
Script PHP Menghitung Mundur
Hitung mundur atau count down dalam php memang terkadang menjadi sangat diperlukan, terlebih lagi berhubungan dengan misalnya masa expirenya suatu akun, artikel, ataupun bentuk implementasi yang lain.
Kali ini penulis akan membawakan script hitung mundur, script php ini bisa digunakan untuk hal-hal yang telah disebutkan tadi.... atau mungkin sekedar pengetahuan saja. Script php ini sudah dimodifikasi sehingga nantinya bisa lebih bermanfaat lagi.
Oke berikut script nya:
Script ini masih bisa dikembangkan sesuai keperluan anda, misalnya berhubungan dengan database.
[You must be registered and logged in to see this link.]
Kali ini penulis akan membawakan script hitung mundur, script php ini bisa digunakan untuk hal-hal yang telah disebutkan tadi.... atau mungkin sekedar pengetahuan saja. Script php ini sudah dimodifikasi sehingga nantinya bisa lebih bermanfaat lagi.
Oke berikut script nya:
- Code:
<?
$t=time();
echo($t . "<br /> Sekarang tanggal: ");
echo(date("D, d F Y",$t));
?>
<br><br><br>
<?php
// Change this to the day in the future
$day = 12;
// Change this to the month in the future
$month = 9;
// Change this to the year in the future
$year = 2011;
// You do not need to edit below this line
// $days is the number of days between now and the date in the future
$days = (int)((mktime (0,0,0,$month,$day,$year) - time())/86400);
echo "Masih ada $days hari, sampai tanggal $day/$month/$year";
?>
Script ini masih bisa dikembangkan sesuai keperluan anda, misalnya berhubungan dengan database.
[You must be registered and logged in to see this link.]
dey- Jumlah posting : 7
Join date : 09.12.10
Age : 35
Lokasi : BANDUNG AJAH
Halaman 1 dari 1
Permissions in this forum:
Anda tidak dapat menjawab topik
|
|
Tue Nov 18, 2014 2:52 am by dandorasta01
» VIMAX PIL JADIKAN RUMAH TANGGA LEBIH HARMONIS DAN ISTRI KETAGIHAN 081326047776
Tue Nov 18, 2014 2:50 am by dandorasta01
» vimax original canada-pusat jakara-kalimantan-bali-batam-sumatera-sulawesi-papua
Tue Nov 18, 2014 2:49 am by dandorasta01
» PERBEDAAN VIMAX ASLI DAN PALSU || JANGAN SALAH PILIH PRODAK VIMAX BB-795E5C80
Tue Nov 18, 2014 2:47 am by dandorasta01
» PEMBESAR PANJANG PENIS PERMANEN 3 BONUS 1 VIMAX ASLI CANADA
Tue Nov 18, 2014 2:44 am by dandorasta01
» VIMAX PILL CANADA ORIGINAL PEMBESAR PANJANG PENIS PERMANEN 2 BONUS 1- 081326047776
Tue Nov 18, 2014 2:43 am by dandorasta01
» VIMAX PIL JADIKAN RUMAH TANGGA LEBIH HARMONIS DAN ISTRI KETAGIHAN 081326047776
Tue Nov 18, 2014 2:42 am by dandorasta01
» VIMAX PILL CANADA ORIGINAL PEMBESAR PANJANG PENIS PERMANEN 3 BONUS 1- 081326047776
Tue Nov 18, 2014 2:40 am by dandorasta01
» VIMAX PILL CANADA ORIGINAL PEMBESAR PANJANG PENIS PERMANEN 3 BONUS 1- 081326047776
Tue Nov 18, 2014 2:39 am by dandorasta01