# Real Time Seconds Disply in PHP

**URL:** <https://forum.kirupa.com/t/real-time-seconds-disply-in-php/21282>\
**Category:** programming\
**Created:** [May 19, 2003, 11:19pm UTC](https://forum.kirupa.com/t/real-time-seconds-disply-in-php/21282 "2003-05-19T23:19:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nobody](https://avatars.discourse-cdn.com/v4/letter/n/94ad74/32.png) [@nobody](https://forum.kirupa.com/u/nobody)\
**Post date:** [May 19, 2003, 11:19pm UTC](https://forum.kirupa.com/t/real-time-seconds-disply-in-php/21282/1 "2003-05-19T23:19:35Z")

</div>

I was just wondering how you would display secondsin real time through PHP

Right now I have this code

```php
print date("H.i.s")

```

any clue as to what to do would be awesomeful

---

<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:** [May 19, 2003, 11:22pm UTC](https://forum.kirupa.com/t/real-time-seconds-disply-in-php/21282/2 "2003-05-19T23:22:07Z")

</div>

no. PHP gets the servers time. You would use javascript for that… unless I misunderstood…

---

<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:** [May 19, 2003, 11:25pm UTC](https://forum.kirupa.com/t/real-time-seconds-disply-in-php/21282/3 "2003-05-19T23:25:31Z")

</div>

I think you misunderstood

When you load the page it just says 15.23.01

I want the “01” to actually be changing as the seconds pass… if its not possible with php just let me know, cuz I don’t want to use javascript cuz this is just me learning php slowly

---

<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:** [May 19, 2003, 11:26pm UTC](https://forum.kirupa.com/t/real-time-seconds-disply-in-php/21282/4 "2003-05-19T23:26:55Z")

</div>

you would have to refresh the page each second and that wouldn’t make any sense so no. PHP pages are called from the server and they are only called once. They can’t do real-time like that.

---

<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:** [May 19, 2003, 11:28pm UTC](https://forum.kirupa.com/t/real-time-seconds-disply-in-php/21282/5 "2003-05-19T23:28:59Z")

</div>

okie dokie smokie  
thank you:beam:
