473,802 Members | 1,986 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4736
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 misunderstandin g you, but why is it more complicated than (ASP
version)

if (Date expireDate) then
response.redire ct "noevents.a sp"
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('Locatio n: 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************ **********@m79g 2000cwm.googleg roups.com>
, dated Fri, 11 Aug 2006 10:40:37 remote, seen in news:comp.infos ystems.
www.authoring.html, bbgraph <rc*******@eart hlink.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.c om/faq/>? JL/RC: FAQ of news:comp.lang. javascript
<URL:http://www.merlyn.demo n.co.uk/js-index.htmjscr maths, dates, sources.
<URL:http://www.merlyn.demo n.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
2605
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 their links to our main site for the remainder of the domain's life. I have found this meta element/tag, but that doesn't help with what we want to accomplish:
13
2328
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 Veer
2
2084
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 I was doing like that
4
1843
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 created using information you submitted in a form. This page is no longer available. As a security precaution, Internet Explorer does not automatically resubmit your information for you. To resubmit your information and view this Web page, click the...
4
2826
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 want them to be able to click on the 'BACK' button and get back to the form - they may inadvertently re-submit the page and get charged again. I WANT them to get the "Page has expired" message.
2
7689
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 mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="10"
1
1131
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" -> Buy Video selected. The "->" character means one click in the WAP portal. What I want to do is go directly to Videos page to select what I want. It's because the welcome page is to large to download.
0
1058
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" -> "Videos" -> Buy Video selected. The "->" character means one click in the WAP portal. What I want to do is go directly to Videos page to select what I want. It's because the welcome page is to large to download.
5
6803
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; and someone cannot navigate back to an cached image of the page in theory after the user has signed off. Response.Cache.SetCacheability(HttpCacheability.NoCache); This works all right, except when the user decides to use the browser's back...
0
9562
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10538
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10285
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10063
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9115
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5622
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4270
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3792
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2966
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.