473,404 Members | 2,170 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Expire a web page and redirect to another

Does anyone have a suggestion for doing this with a date function
rather than the typical content=(number of seconds) function? I have an
events page that I'd like to expire on a certain date and, in it's
place, have a noevents page displayed. My server has Perl, Php and
FrontPage extensions installed but I haven't been able to find a script
anywhere that will do the job.

Thanks in advance
Bob

Aug 11 '06 #1
3 4719
bbgraph wrote:
Does anyone have a suggestion for doing this with a date function
rather than the typical content=(number of seconds) function? I have an
events page that I'd like to expire on a certain date and, in it's
place, have a noevents page displayed. My server has Perl, Php and
FrontPage extensions installed but I haven't been able to find a script
anywhere that will do the job.
Maybe I'm misunderstanding you, but why is it more complicated than (ASP
version)

if (Date expireDate) then
response.redirect "noevents.asp"
end if

?
Aug 11 '06 #2
Rik
bbgraph wrote:
Does anyone have a suggestion for doing this with a date function
rather than the typical content=(number of seconds) function? I have
an events page that I'd like to expire on a certain date and, in it's
place, have a noevents page displayed. My server has Perl, Php and
FrontPage extensions installed but I haven't been able to find a
script anywhere that will do the job.

$expire = ??;//the date & time you want
if(time() $expire){
header('Location: http://www.example.com/noevents.php');
exit;
}

But wouldn't it be more logical just to display upcoming events on the page,
if you can use PHP? No matter where and when the user goes to the page,
they'll always see the events to come. That's probably what the user wants,
or do you want a date-related page specifically?

Grtz,
--
Rik Wasmus
Aug 11 '06 #3
JRS: In article <11**********************@m79g2000cwm.googlegroups .com>
, dated Fri, 11 Aug 2006 10:40:37 remote, seen in news:comp.infosystems.
www.authoring.html, bbgraph <rc*******@earthlink.netposted :
>Does anyone have a suggestion for doing this with a date function
rather than the typical content=(number of seconds) function? I have an
events page that I'd like to expire on a certain date and, in it's
place, have a noevents page displayed. My server has Perl, Php and
FrontPage extensions installed but I haven't been able to find a script
anywhere that will do the job.
Firstly, you have to decide whether that date should be the UTC/GMT
date, or the user's local date, or some other local date (perhaps
yours), or that it does not matter.

And you need to decide whether a copy of the page kept locally by the
reader needs to expire itself on the date in question.

Read the c.l.j FAQ.
--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://www.jibbering.com/faq/>? JL/RC: FAQ of news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htmjscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/TP/BP/Delphi/jscr/&c, FAQ items, links.
Aug 12 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: RTL | last post by:
Hello all, Actually, we're letting several of our domain names go back into the field. I believe there must be some industry way to use some HTML element/tag to get the Spiders to start updating...
13
by: Veeresh | last post by:
I am using .Net 1.1. How to expire an .aspx page? I think I have to use HttpCachePolicy class for this. But not sure how to use and where to this code to work. Is it in Page_load event. Thanks...
2
by: karunakar | last post by:
Hi All I dont want to expire the applicatoion Once login the application i dont want to expire the application Presently iam doing using cookies this is not working fine Please help me out ...
4
by: kurt sune | last post by:
Hi, I have checked this newsgroup and goggled in order to find out how to expire the IE browser cache in order to ALWAYS get this text Warning: Page has Expired The page you requested was...
4
by: Scott Shuster | last post by:
Hi, I've been searching and testing and have not yet found the answer I'm looking for. I have an ASP.NET (vb) application with an ecommerce function. When the user submits the page, I DON'T...
2
windows_mss
by: windows_mss | last post by:
hi Programmers, In course of my project now i facing an proble that i have to Redirect the page to some other Page after the Default Session Time Expire <sessionState ...
1
by: murilorc | last post by:
Hi everyone! I need a help to create a perl script that go deeper in a WAP portal do avoid the maximum number of clicks. Today when I access the WAP portal I went to: "Welcome" -> "Videos" ->...
0
by: murilorc | last post by:
Hi everyone! I need a help to create a PHP page/script that go deeper in a WAP portal do avoid the maximum number of clicks. Today when I access the WAP portal I went to: "Welcome page" ->...
5
by: =?Utf-8?B?Y2hlY2tyYWlzZXJAY29tbXVuaXR5Lm5vc3BhbQ== | last post by:
I have a site which I secure with forms authentication. When the user's sign on and hit one of the secure pages, I have this line in my code to ensure that the browser does not cache the page;...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.