ionCube Logo
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


 
Post new topic   Reply to topic    ionCube Forum Index -> ionCube Loader

Checking license expiry date, without Fatal Error message

Author Message
michaelvv



Joined: 03 Feb 2017
Posts: 1

PostPosted: Fri Feb 03, 2017 6:03 pm    Post subject: Checking license expiry date, without Fatal Error message Reply with quote

Hi.

I want to check a certain php file if its date is expired and return with an
error message more convenient than

Fatal error:
The encoded file /var/www/html/classes/license.class.enc.php has expired. in Unknown on line 0

A little like this idea

if ( is_callable( 'ioncube_check_license_properties' )) {
$file="license.class.enc.php";

if(is_file($file)) {
// how to check for valid expiry date ???
}

}


/Thanks Michael.
Back to top
View user's profile Send private message
liaison
ionCube Support


Joined: 16 Dec 2004
Posts: 2757

PostPosted: Tue Feb 28, 2017 1:44 pm    Post subject: Reply with quote

You would encode with script based license checking rather than the default of auto, and then use the Loader API functions to validate the license. The User Guide PDF has a lot more detail on this.
_________________
Community Admin
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ionCube Forum Index -> ionCube Loader All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum