![]() |
Time Based Page Redirection
We have a contact us page with online/open times and other information.
We would like to also have a page that is somewhat different from the online page lets call it offline page. How would one use a php statement based on server time to have it automatically switch between pages? |
try this:
PHP Code:
so, an example of a page would be: PHP Code:
|
We want the time to switch between say contacton.html and contactoff.html
|
what times do you want it to display "contactoff.html"?
then ill just give u the code. |
http://www.realwebhost.net.contact.php = online
12:00 pm to 6:00 pm http://www.realwebhost.net/contact1.php = offline 6:00pm to 12:00 pm has to be hours and minutes not just hours are there will a hour delay |
This is what we have in contact.php
PHP Code:
PHP Code:
But it does not work. |
try this:
contact.php PHP Code:
PHP Code:
|
Thank you very much, we will try it. We last nite when what we had did not work went with 2 files and 2 perl scripts and run them from cron.But we will try this.
Thank You for your effort. |
All times are GMT. The time now is 07:05 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|