Automatic refresh of screen.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bob

    #1

    Automatic refresh of screen.

    I have a monitor in a public place and I want the page to automatically
    refresh, approximately every 5 minutes.

    What is the best way to do this?

    It is a .php page accessing a mysql database.

    Thanks

  • Philip Ronan

    #2
    Re: Automatic refresh of screen.

    Bob wrote:
    [color=blue]
    > I have a monitor in a public place and I want the page to automatically
    > refresh, approximately every 5 minutes.
    >
    > What is the best way to do this?
    >
    > It is a .php page accessing a mysql database.
    >
    > Thanks
    >[/color]

    Just plant this in the HEAD section of the HTML output:

    <META http-equiv="Refresh" content="300;ht tp://dom.ain/path/to/sript.php">

    --
    phil [dot] ronan @ virgin [dot] net



    Comment

    • Philip Ronan

      #3
      Re: Automatic refresh of screen.

      Philip Ronan wrote:
      [color=blue]
      > <META http-equiv="Refresh" content="300;ht tp://dom.ain/path/to/sript.php">[/color]

      Oops, typo.

      Should be ... content="300;ur l=http://dom.ain/path/to/script.php">
      ^^^^ ^

      --
      phil [dot] ronan @ virgin [dot] net



      Comment

      • SpoonfulofTactic@gmail.com

        #4
        Re: Automatic refresh of screen.

        Of course, you can use any of the "http-equiv" meta-tags as Headers
        instead:

        <?php header("Refresh : 300;url=http://whatever"); ?>

        Comment

        • Philip Ronan

          #5
          Re: Automatic refresh of screen.

          SpoonfulofTacti c@gmail.com wrote:
          [color=blue]
          > Of course, you can use any of the "http-equiv" meta-tags as Headers
          > instead:
          >
          > <?php header("Refresh : 300;url=http://whatever"); ?>
          >[/color]

          I wouldn't do that. The HTTP specifications don't actually define a
          "Refresh" header; this is just a hack supported in the client software.

          --
          phil [dot] ronan @ virgin [dot] net



          Comment

          • Mike Willbanks

            #6
            Re: Automatic refresh of screen.

            Bob,

            Depending on the platform, you can use a javascript refresh also with a
            meta refresh (the meta refresh was already stated). The reason for
            doing both is just incase that certain things are not working as they
            are supposed to.

            As client software depends on the implementation. You might as well use
            both. Because if the stop button is hit or somehow forced you can loop
            the javascript for every n seconds.

            Mike

            Comment

            Working...