1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Added URL To Refresh Page?

Discussion in 'YouTube' started by iBlessing 09, Sep 3, 2009.

  1. iBlessing 09

    iBlessing 09 Registered Member

    Joined:
    Aug 8, 2009
    Messages:
    75
    Likes Received:
    9
    Hi, is there a way to add something to my url to automatically refresh the page every 20 seconds or so, I know " example.com/&refresh=30s " used to work but it doesn't seem to anymore, any other ways?
     
  2. jimbobo2779

    jimbobo2779 Jr. VIP Jr. VIP Premium Member

    Joined:
    Sep 17, 2008
    Messages:
    3,239
    Likes Received:
    2,394
    Occupation:
    Software Engineer
    Location:
    UK
    Home Page:
    no...





    Unless you add some code to take that GET variable and do something with it. If you have PHP support you could add the code
    Code:
    <?php
    if (isset($_GET['refresh'])){
        $refresh = $_GET['refresh'];
        $URL = "PUT YOUR URL IN HERE";
        header('Location: '.$URL);
    }
    ?>
     
  3. iBlessing 09

    iBlessing 09 Registered Member

    Joined:
    Aug 8, 2009
    Messages:
    75
    Likes Received:
    9
    I need it as a normal url because it's on a website that has people automtically views each others youtube videos but if i put my url with the refresh it will keep doing my video because its done automatically so people do it away from keyboard or just don't check on it.

    I don't know if it will work but its worth a shot.
     
  4. zZeus

    zZeus BANNED BANNED

    Joined:
    Aug 9, 2009
    Messages:
    129
    Likes Received:
    120
    No, why not just make it refresh in a html code..?
     
  5. iBlessing 09

    iBlessing 09 Registered Member

    Joined:
    Aug 8, 2009
    Messages:
    75
    Likes Received:
    9
    go onto viewtubetrain dot com to see what i mean
     
  6. zZeus

    zZeus BANNED BANNED

    Joined:
    Aug 9, 2009
    Messages:
    129
    Likes Received:
    120
    Yeah on there website, it refreshes after a certain time...and thats in the code on the webpage. Not in the URL.
     
  7. iBlessing 09

    iBlessing 09 Registered Member

    Joined:
    Aug 8, 2009
    Messages:
    75
    Likes Received:
    9
    I know, but if i changed my url to youtube.com/&refresh=20 then 10 seconds before my video finishes it would refresh the page and i would get another view, the people watching the videos wont release because there afk and ill get alot of views from alot of people.
     
  8. yoyas

    yoyas Junior Member

    Joined:
    Nov 14, 2008
    Messages:
    145
    Likes Received:
    397
    Location:
    Spain
    What about a cronjob? You can set it from your cpanel if you have access to it. The command is something like:

    Code:
    /usr/bin/wget http://mywebpage.com/index.php >/dev/null
    Then you can select how many times you want to refresh it.
     
  9. iBlessing 09

    iBlessing 09 Registered Member

    Joined:
    Aug 8, 2009
    Messages:
    75
    Likes Received:
    9
    no, wouldn't work :(