Page 1 of 1
time limited website?
Posted: Mon Dec 04, 2006 8:37 pm
by paul_20k
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
Re: time limited website?
Posted: Mon Dec 04, 2006 8:41 pm
by Zoxive
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
Yes, it is possible.
Posted: Mon Dec 04, 2006 8:50 pm
by Luke
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...
Posted: Tue Dec 05, 2006 4:40 am
by paul_20k
thanks
Posted: Tue Dec 05, 2006 7:05 am
by paul_20k
Hi Zoxive, Ninja
your idea is different from what Ninja explained? Ninja, if someone has access to this php file, they can just remove this part from the code and that lmit is gone forever....is there any any other way to do it?
Thanks
Posted: Tue Dec 05, 2006 7:29 am
by ddragas
try using database or google for "encrypt php"
Posted: Tue Dec 05, 2006 7:39 am
by paul_20k
Hi
You mean to encrypt the whole php code?
Thanks
Posted: Tue Dec 05, 2006 7:44 am
by ddragas
yes, or if you want to encrypt only data from database, try
http://www.phpfreaks.com/tutorials/128/0.php
Posted: Tue Dec 05, 2006 8:11 am
by paul_20k
Thanks ddragas..I got it..I will try it soon