<?
//Expire Class Example
//This example make the link last for 10s
require "expire.class.php";
$expire = new Expire(10, 2, "examplecode", 0); //set the info, expire time = 10s
$link = "example_image.php?expire=".$expire->getCurrentCode(); //make a url
echo "<img src='".$link."' /><br />";
echo "<a href='$link'>".$link."</a>";
?>
|