# onEnterFrame :) \<--- php

**URL:** <https://forum.kirupa.com/t/onenterframe-php/26498>\
**Category:** programming\
**Created:** [July 23, 2003, 5:17pm UTC](https://forum.kirupa.com/t/onenterframe-php/26498 "2003-07-23T17:17:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![andr\_in](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/andr_in/32/37_2.png) [@andr\_in](https://forum.kirupa.com/u/andr_in)\
**Post date:** [July 23, 2003, 5:17pm UTC](https://forum.kirupa.com/t/onenterframe-php/26498/1 "2003-07-23T17:17:55Z")

</div>

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!

```php
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?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 23, 2003, 5:49pm UTC](https://forum.kirupa.com/t/onenterframe-php/26498/2 "2003-07-23T17:49:52Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 23, 2003, 6:07pm UTC](https://forum.kirupa.com/t/onenterframe-php/26498/3 "2003-07-23T18:07:37Z")

</div>

ok thx! I think I can find the refresh code easily!

edit: for example here: [http://grizzlyweb.com/webmaster/javascripts/refresh.asp](http://grizzlyweb.com/webmaster/javascripts/refresh.asp)
