note 6131 deleted from function.date by jimw

From: Date: Fri, 02 Nov 2001 00:36:51 +0000
Subject: note 6131 deleted from function.date by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-20041@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.

« previous php.notes (#20041) next »