goma smile Posted April 20, 2008 Report Posted April 20, 2008 kads nevaretu pateikt kur dabut scriptu kas skaita laiku uz prieksu piemeram cik ilgi jav ir web lapa .
NiTrino Posted April 20, 2008 Report Posted April 20, 2008 (edited) <?php $sakuma_datums = '20.04.2007'; $starpiba = time() - strtotime($sakuma_datums); $dienas = floor($starpiba / 60 / 60 / 24); echo "Šī lapa ir ".$dienas." dienas veca."; ?> ja gribi dinamisko, tad ir jquery variants: http://feijo.pro.br/project/countdown/demo Edited April 20, 2008 by NiTrino
goma smile Posted April 21, 2008 Author Report Posted April 21, 2008 <?php $sakuma_datums = '20.04.2007'; $starpiba = time() - strtotime($sakuma_datums); $dienas = floor($starpiba / 60 / 60 / 24); echo "Šī lapa ir ".$dienas." dienas veca."; ?> ja gribi dinamisko, tad ir jquery variants: http://feijo.pro.br/project/countdown/demo tnq
Recommended Posts