note 6131 modified in date by ronabop

From: Date: Sat, 02 Sep 2000 21:42:26 +0000
Subject: note 6131 modified in date by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-3957@lists.php.net to get a copy of this message
I just used one of the functions listed above to generate an expiration date in my code. I have a form that submits customer requested data to a .php page. The PHP code outputs the current date then adds 90 days to it and outputs the expiration date. Here is the code: $today = date("l M dS Y"); $expire = date("Y m d",time() + 7776000); $showexp = date("l M dS Y",time() + 7776000); I am using two different variables for the expiration because one ($expire) is written to a MySQL DB and the other ($showexp) is for display to the customer in a better format. http://www.php.net/manual/function.date.php

« previous php.notes (#3957) next »