Licencing PHP application

Hi,
I have written a PHP application for a company I work for, now they want to licence it out to other companies to use.  Part of this application allows the administrator to add other user and devices that are monitored.
What we would like to do is be able to limit the number of users/devices that can be added according to which licence our customers buy.
One way I thought of doing this is to have the application Zend encoded, and within a PHP file a variable that will relate to the number of users that are allowed to be added.
id like to hear from anyone who has done anything like this before, and if there is a good secure way to go about this.
Thanks
D.
LVL 1
maundedAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

RoonaanCommented:
Is this an internet or an intranet application? Otherwise you could always implement a mysqltable on your databaseserver and have each system connect to that system when a user gets added. This mysql user would only granted read access on the one particular table offcourse.

You then could zendencode the project to prevent changing of the mysql retrieval.

Regards

-r-
0
hernst42Commented:
Encoding your project with Zend and also encoding the lincence-file with the settings will prevent the client from changeing those setted values or even getting to know which variables must be changed.
Or you might encode all those settings into the licencekey which then could be plaintext on the client side.

Using a central point to verify add/user and so on will typical not possible in any larger firm and that might be KO-cirteria to use your product. Endoce it with Zend and you are on a good, secure side. I would never buy such a product as it may not work if you need to change that position of the server my application may not be function anymore.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
maundedAuthor Commented:
Thanks folks!
I wrote a short licence.php file which has a couple of functions that check the number of users in teh db and compare them to a variable in that file.  Used Zend Encoder to make it a bit trickier to break :)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.