php clock is not moving

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

New php-forum User
New php-forum User
Posts: 31
Joined: Tue Nov 06, 2012 12:20 pm

php clock is not moving

Postby inoob » Wed Sep 11, 2013 4:56 am

I am trying to echo time

<?php echo date("h:i:s"); ?>

Problem is that I don't see the clock moving. Does this require jquery or something?

php-forum Super User
php-forum Super User
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm

Re: php clock is not moving

Postby johnj » Sun Sep 15, 2013 5:32 am

php is a server side scripting language, so you cannot get anything directly like a clock without having code for that. What I think you want is a client side stuff and "yes", for that you need to use something like jquery.

Return to “PHP coding => General”

Who is online

Users browsing this forum: Baidu [Spider] and 1 guest