Script that switches webpages at a certain time??

by 3 replies
4
Does anyone know of a script that will change a webpage to another webpage at a certain time and date.

For instance. I want a webpage to on a certain url to go to a new webpage on that same url at midnight every night.

Do you guys know of a script that will do that.

THANK YOU!

Roger
#main internet marketing discussion forum #script #switches #time #webpages
  • Yeah, we do it all the time. Send me an email and I'll send you a script since it won't let me post it here (I've been trying...)

    Kevin [at] VirtualProfitCenter.com
  • Kevin, you could try to post your code using the BB code: WarriorForum - Internet Marketing Forums - BB Code List

    This might work:

    [code] [ /code]

    If that doesn't this might work:


    [noparse][ /noparse]
    • [ 1 ] Thanks
    • [1] reply
    • [quote=Scott Ames;1191974]Kevin, you could try to post your code using the BB code: WarriorForum - Internet Marketing Forums - BB Code List

      This might work:

      [code] [ /code]

      If that doesn't this might work:


      [ /noparse][/quote]

      I tried the code tags but not the noparse tags. I'll give it a shot...

      [noparse]
      <?php

      $currenttime = time();
      $latertime = mktime(9, 0, 0, 6, 19, 2009); /* hours,minutes,seconds,month,day,year */
      if ($currenttime >= $latertime){

      /* the page you want to redirect to AFTER time has expired... */

      header('Location: http://www.VirtualProfitCenter.com/');

      } else {

      /* the page you want to redirect to BEFORE time has expired... */

      header('Location: http://www.VirtualProfitCenter.com/faststart/');

      }

      ?>


      Make this the landing page and save it with a .php extension (like index.php)

      When you send visitors to this page:

      http://www.YouDomain.com/index.php

      If it is BEFORE the specified time they will be sent to the second URL, if it is AFTER they will be sent to the first.

Next Topics on Trending Feed