Go Back   WarriorForum - Internet Marketing Forums > The Warrior Forum > Main Internet Marketing Discussion Forum
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
LinkBack Thread Tools
Old 09-17-2009, 09:56 AM   #1
Active Warrior
 
Join Date: Apr 2005
Location: , , .
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Default Script that switches webpages at a certain time??

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
rogerlodge is offline   Reply With Quote
Old 09-17-2009, 10:13 AM   #2
Full Frontal Lobe Nudity
War Room Member
 
Kevin-VirtualProfitCenter's Avatar
 
Join Date: Aug 2009
Location: Knoxville, TN
Posts: 912
Thanks: 519
Thanked 492 Times in 205 Posts
Social Networking View Member's Twitter Profile 
Default Re: Script that switches webpages at a certain time??

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-VirtualProfitCenter is offline   Reply With Quote
Old 09-17-2009, 10:18 AM   #3
Senior Warrior Member
War Room Member
 
Scott Ames's Avatar
 
Join Date: Jun 2006
Location: West of Rockies
Posts: 5,556
Thanks: 363
Thanked 665 Times in 325 Posts
Default Re: Script that switches webpages at a certain time??

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]

Action is the foundational key to all success. - Pablo Picasso
Scott Ames is offline   Reply With Quote
Old 09-17-2009, 10:37 AM   #4
Full Frontal Lobe Nudity
War Room Member
 
Kevin-VirtualProfitCenter's Avatar
 
Join Date: Aug 2009
Location: Knoxville, TN
Posts: 912
Thanks: 519
Thanked 492 Times in 205 Posts
Social Networking View Member's Twitter Profile 
Default Re: Script that switches webpages at a certain time??

[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.


Last edited by Kevin-VirtualProfitCenter; 09-17-2009 at 10:38 AM. Reason: Make it look all perty...
Kevin-VirtualProfitCenter is offline   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > The Warrior Forum > Main Internet Marketing Discussion Forum

Tags
script, switches, time, webpages

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 04:06 PM.