Re: code generation
| From: | Jochem Maas | Date: | Thu, 04 Aug 2005 07:34:30 +0000 |
| Subject: | Re: code generation | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-219979@lists.php.net to get a copy of this message | ||
btw - what has 'code generation' got to do with the question?
a oneliner to check 2 dates is not considered code generation -
I'd call it 'writing a oneliner' or something similiar :-)
sub@pudlz.com wrote:
Couldn't you use a date check with date()? if(todays date < end date) { load the site } else { the site has expired }indeed, also checkout time(), mktime(), strtotime() etc. also ... if ($timeIsUp) { // delete site files exit; } // show the site...
Andrew Darrow Kronos1 Productions www.pudlz.com ----- Original Message ----- From: "Johan Grobler" <groblerj@cput.ac.za> To: <php-general@lists.php.net> Sent: Wednesday, August 03, 2005 11:04 PM Subject: [PHP] code generation is there a way to limit the time a website is available in php?, if you want to have a database driven website but you would only like it to be active for 6 months for instance, i'm doing a project at univirsity and this is part of the specs, but i cant think of a good way how to do it... -------------------------------------------------------------------- Disclaimer This e-mail transmission contains confidential information, which is the property of the sender. The information in this e-mail or attachments thereto is intended for the attention and use only of the addressee. Should you have received this e-mail in error, please delete and destroy it and any attachments thereto immediately. Under no circumstances will the Cape Peninsula University of Technology or the sender of this e-mail be liable to any party for any direct, indirect, special or other consequential damages for any use of this e-mail. For the detailed e-mail disclaimer please refer to http://www.ctech.ac.za/polic or call +27 (0)21 460 3911