Reply
Redirect page on a certain time/date with CPanel
Old 08-07-2009, 07:04 PM Question Redirect page on a certain time/date with CPanel
Junior Talker

Posts: 2
Name: Andrei Markov
Trades: 0
Hi to all,

I would like to know how I can redirect to a web page but on a certain time/date with CPanel. Probably I need to use cron and .htaccess altogehter?

Thanks,

Andrei
raves_misc is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 08-07-2009, 07:15 PM Re: Redirect page on a certain time/date with CPanel
Super Talker

Posts: 128
Name: Jilesh
Trades: 0
You need to first make script for re-direction based on condition and then use cPanel cron job to run script on your desired date/time.
__________________
AccuWebHosting.Com - Windows Hosting Expert
ASP.NET 3.5 | SQL 2005 Database | US Based Hosting Company | 24 X 7 Support | Daily Backups
| Web Hosting Directory | Jobs Search Engine | Website Hosting
thewebhostingdi is offline
Reply With Quote
View Public Profile
 
Old 08-07-2009, 07:51 PM Question Re: Redirect page on a certain time/date with CPanel
Junior Talker

Posts: 2
Name: Andrei Markov
Trades: 0
Hi, thanks for the advice, do you think this one will do?:

<?php
$hour = date('G');
$minute = date('i');
$day = date('w');
$m = $hour * 60 + $minute; // Minutes since midnight.
if(
$day == 6 // Saturday...
&& $m >= 735 // ... after 12:15...
&& $m <= 1035 // ... but before 17:15...
) header("Location: saturdayafternoon.php");
else if(
$day == 4 // Wednesday...
&& $m >= 1155 // ... after 19:15...
&& $m <= 1335 // ... but before 22:15...
) header("Location: wednesdaynight.php");
?>
raves_misc is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Redirect page on a certain time/date with CPanel
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.29933 seconds with 13 queries