PDA

View Full Version : onEnterFrame :) <--- php



andr.in
July 23rd, 2003, 01:17 PM
How can I make an action to be executed after a period of time! like onEnterFrame or sth!
For example when I make a clock!

date("i");
How can I make it refresh all the time so it's like real-time... so I don't have to refresh the page to see it change?

λ
July 23rd, 2003, 01:49 PM
You can't using just PHP. PHP is entirely server side. All that gets outputted to the client is HTML.

However, I belive you can use JavaScript to refresh the page every so often.

andr.in
July 23rd, 2003, 02:07 PM
ok thx! I think I can find the refresh code easily!

edit: for example here: http://grizzlyweb.com/webmaster/javascripts/refresh.asp