Ultrashock Forums > Development > Server Side
Expire Date Script for HTML documents

You are currently viewing our website as a guest which gives you limited access to forums, files and other resources.

Click here to join now for free, and start interacting with our members, download files and much more!

Click here if you are looking for our Flash files and other professional assets.
 
Post Reply | View first unread | Rate Thread Search this Thread | Thread Tools | Display Modes

#1
Bookmark and Share!
Expire Date Script for HTML documents
Old 2007-02-06

Hi,

Does anyone out there know if it's possible to create a Expire date script that can be dynamically attached to html pages and once that date is reached, the page either fails to load or you are taken to a holding page.

I know how to create expire date scripts in flash but can I hell think how to implement this into a html document.

Anyone know of such a thing?

Cheers in advance!
postbit arrow 2 comments | 353 views postbit arrow Reply: with Quote   
Registered User
lozzacaile is offline
seperator
Posts: 85
2003-06-17
Age: 32
seperator

Ultrashock Member Comments:
x-zero-x x-zero-x is offline x-zero-x lives in Netherlands 2007-02-06 #2 Old  
use a backend language to include the html-document if the date is not expired.. here's an example in php:

PHP Code:
<?php
$today 
=  date();
$expired date(); // expires today.. use a timestamp to set for other dates;
if($today<$expired){
include(
"htmlpage.html");
}else{
include(
"holdingpage.html");
}
?>
Reply With Quote  
lozzacaile lozzacaile is offline 2007-02-06 #3 Old  
Smart!

Thanks for that
Reply With Quote  
Thread Tools
Display Modes Rate This Thread
Rate This Thread: