![]() | | ||||||||
| | #1 |
| Active Warrior Join Date: Apr 2005 Location: , , .
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
|
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 |
| | |
| | #2 |
| Full Frontal Lobe Nudity War Room Member Join Date: Aug 2009 Location: Knoxville, TN
Posts: 912
Thanks: 519
Thanked 492 Times in 205 Posts
|
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 |
| | |
| | |
| | #3 |
| Senior Warrior Member War Room Member Join Date: Jun 2006 Location: West of Rockies
Posts: 5,556
Thanks: 363
Thanked 665 Times in 325 Posts
|
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
| |
| | |
| | #4 |
| Full Frontal Lobe Nudity War Room Member Join Date: Aug 2009 Location: Knoxville, TN
Posts: 912
Thanks: 519
Thanked 492 Times in 205 Posts
|
[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... | |
| | |
![]() |
|
| Tags |
| script, switches, time, webpages |
| Thread Tools | |
| |
![]() |