SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: Timer in php

  1. #1
    SitePoint Evangelist barbara1712's Avatar
    Join Date
    Apr 2007
    Location
    India
    Posts
    509
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Timer in php

    Hello,

    I want to display the clock on my php page.
    As in .net, there is a timer control with tick event.
    How can we display the current time continuously in php?

    Any help will be highly appriciated.

    Thanks
    Barbara

  2. #2
    SitePoint Wizard jimbo_dk's Avatar
    Join Date
    May 2005
    Location
    Singapore
    Posts
    1,261
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    PHP is a server-side language. In order for a clock to be displayed in a browser window, you need a client-side language (i.e. javascript). Check out the code here:

    http://ashearer.com/software/web-tools/clock/
    Winners Respond. Losers React.
    Singapore Web Designer

  3. #3
    SitePoint Evangelist barbara1712's Avatar
    Join Date
    Apr 2007
    Location
    India
    Posts
    509
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks jimbo_dk,

    I will try this code.
    Barbara


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •