php clock is not moving

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

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

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: 1803
Joined: Thu Mar 10, 2011 5:07 pm

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.

Post Reply