Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



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
 
 
Register now for full access!
Old 08-07-2009, 07:15 PM Re: Redirect page on a certain time/date with CPanel
Extreme Talker

Posts: 167
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.
__________________

Please login or register to view this content. Registration is FREE

ASP.NET 3.5 | SQL 2005 Database | US Based Hosting Company | 24 X 7 Support | Daily Backups
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
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.11402 seconds with 12 queries