software for reloading page

Discussion in 'Programming' started by gartar, Apr 10, 2008.

  1. #1
    Hello,

    I need software for reloading of a page.And if it can randomize the time, it will be great.

    Do you know such a software?

    Or extension?

    Thank you.
     
    gartar, Apr 10, 2008 IP
  2. qprojects

    qprojects Peon

    Messages:
    1,901
    Likes Received:
    103
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You mean that a page should be reloaded every few seconds?
     
    qprojects, Apr 10, 2008 IP
  3. Dade72

    Dade72 Peon

    Messages:
    36
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I would suggest you use code to randomize the refresh time of your page:
    
    <?
      $random = rand(5, 15);
    ?>
    <meta http-equiv="refresh" content="<?=$random;?>"; url=http://www.yourdomain.com/index.php"> 
    
    PHP:
    hope this helps you in what you are doing
     
    Dade72, Apr 10, 2008 IP
  4. c4st

    c4st Peon

    Messages:
    41
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    <?php
    
    $minSeconds = 1;
    $maxSeconds = 10;
    $page = 'http://domain.com';
    
    sleep(rand($minSeconds, $maxSeconds));
    header("Location: {$page}");
    
    ?>
    PHP:
     
    c4st, Apr 10, 2008 IP
  5. Arkserver

    Arkserver Banned

    Messages:
    2,533
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I created a stand alone application not too long ago that refreshes pages that you specify.
    If you are interested let me know :)
     
    Arkserver, Apr 12, 2008 IP