goma smile Posted April 20, 2008 Report Share Posted April 20, 2008 kads nevaretu pateikt kur dabut scriptu kas skaita laiku uz prieksu piemeram cik ilgi jav ir web lapa . Link to comment Share on other sites More sharing options...
NiTrino Posted April 20, 2008 Report Share 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 Link to comment Share on other sites More sharing options...
goma smile Posted April 21, 2008 Author Report Share 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 Link to comment Share on other sites More sharing options...
Recommended Posts