The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End php date Re: php date


If you want it to run a clock that updates every second, your answer is javascript – not PHP.

PHP is a server side language – thus run on the server.

Javascript is a client side language, and lets the users browser do the work.

There is absolutely no point in making a clock ajax/php based. You are making a bunch of useless http requests, and the time would even jump several second intervals on poor connections.