Licencing PHP application

Posted on 2004-10-28
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

    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

    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.
    LVL 1

    Author Comment

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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone. Privacy Policy Terms of Use

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
    Introduction Many web sites contain image galleries; a common design for these galleries includes a page with a collection of thumbnail images.  You can click on each of the thumbnail images to see the larger version of the image.  This is easily i…
    The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

    875 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

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now