time limited website?
Moderator: General Moderators
time limited website?
Hi
Is it possible to make a website in PHP which stops working after calculated period of time...like it will stop working after 3 months or it will require a password to operate after first 3 months?
Thanks
Is it possible to make a website in PHP which stops working after calculated period of time...like it will stop working after 3 months or it will require a password to operate after first 3 months?
Thanks
Re: time limited website?
Yes, it is possible.paul_20k wrote:Hi
Is it possible to make a website in PHP which stops working after calculated period of time...like it will stop working after 3 months or it will require a password to operate after first 3 months?
Thanks
Code: Select all
<?php
if(time() > $allowable_time_frame)
{
// Allowable time frame could be pulled from a file or database or whatever you like
echo 'Nice try kiddo... beat it!';
exit;
}
// Continue to website...yes, or if you want to encrypt only data from database, try http://www.phpfreaks.com/tutorials/128/0.php