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 PHP Encoder

License Files Usage

Author Message
pdaniel



Joined: 29 Nov 2005
Posts: 3

PostPosted: Tue Nov 29, 2005 12:51 pm    Post subject: License Files Usage Reply with quote

Hi all, I'm having a doubt maybe someone can help me out.

Is it possible to get a property value in my PHP script?

In some versions of my application I limit the number of records of a table and I set that in a PHP file. By using a license file that ionCube allows to use with the make_license I wonder if there's a way of setting that in the license file and get the value in my PHP script. That way I would only need to send the license file to customer and not 2 files.

Thanks in advance,
Pedro Gonçalves
Back to top
View user's profile Send private message
liaison
ionCube Support


Joined: 16 Dec 2004
Posts: 2788

PostPosted: Tue Nov 29, 2005 3:21 pm    Post subject: Reply with quote

You can do this using the ioncube_license_properties() function in the Loader API. See section 7 in the user guide.
_________________
Community Admin
Back to top
View user's profile Send private message
pdaniel



Joined: 29 Nov 2005
Posts: 3

PostPosted: Wed Nov 30, 2005 11:03 am    Post subject: Got it Reply with quote

Thanks nick got it working.

I've made the following in case anyone needs:

$test = ioncube_license_properties();
print_r($test);
echo "<p>".$test['numberofusers']['value'];
echo "<p>".$test['numberofwks']['value'];

The numberofusers and numberofwks are properties in the license file. This code was only for testing it out.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ionCube Forum Index -> ionCube PHP Encoder 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