Go Premium for a chance to win a PS4. Enter to Win


Licencing PHP application

Posted on 2004-10-28
Medium Priority
Last Modified: 2008-03-06
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.
Question by:maunded
LVL 49

Assisted Solution

Roonaan earned 500 total points
ID: 12431936
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.


LVL 48

Accepted Solution

hernst42 earned 500 total points
ID: 12432121
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.

Author Comment

ID: 12480344
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 :)

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to implement server side field validation and display customized error messages to the client.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question