PDA

View Full Version : Listing date - creating permanent listing?


lilqhgal
12-27-2005, 12:42 PM
I have a script that has a drop-down for how long the listing will be published. Right now, it uses the following to decide between 2 weeks, 1 month, 3 months, or 6 months:

$cadate = time();
if ($gueltig == '14') $caend = $cadate + 1209600;
elseif ($gueltig == '30') $caend = $cadate + 2592000;
elseif ($gueltig == '90') $caend = $cadate + 7776000;
elseif ($gueltig == '182') $caend = $cadate + 15724800;
else $caend = $cadate + 1209600;
$deltime = strftime(""._CLADS_STRF."",$caend);


I know this is a stab in the dark, and without seeing the rest of the code, is there another elseif I can add so that the listing will be there permanently?

ronaldb66
12-27-2005, 01:24 PM
Using the Unix date format, if I understand correctly the highest possible value is jan 19. 2038; that should keep them around for the coming years.