India

ZestyBeanz Technologies Pvt Ltd 4th Floor, Nila, Technopark Thiruvananthapuram,
India – 695581
Phone: +91 471 4063254
Fax : +91 471 2700171

   .

ZestyBeanz Technologies Pvt Ltd
61/3236, Manikkath Cross Road
Ravipuram, Kochi, India - 682016
Phone: +91 484 4063254

  UAE

Zesty Labs
Office # 2003, Millennium Plaza Building
Sheikh Zayed Rd, Dubai, UAE
Phone: +971 4333 2222​
Mobile: +971-52-7553466

  Germany​

ZestyBeanz Technologies GmbH
Reuterstraße 1
90408 Nürnberg
Fon: +49 911 4801 444
Fax: +49 911 4801 445

Reply to comment

Contact Form


Shobin Markose's picture

Creating License with Ioncube

      In this article we will talk about making license files using Ioncube PHP encoder. Ioncube Encoder Pro or Cerberus is required to generate license files that can be distributed to your customers.The entry level version of Ioncube Pro cannot generate licenses,pro/cerberus eliminates the re-encoding and redistributing the project for each customer.

      First we need to look at how to prepare a project to be used with a license.

Preparing Project:

      Let us say that we have our project in a folder called 'testproject', the simplest way to encode such would be to use the following command (ioncube_encoder5 is for PHP 5.x, ioncube_encoder is for PHP 4.x)

/ioncube_encoder$ ioncube_encoder5 /projects/testproject --into /encoded-project

     The above will encode testproject into a new folder located under /encoded-project, no licensing or restrictions has been applied. To encode the project so that a license file is required you add:

/ioncube_encoder$ioncube_encoder5 --with-license testproject_lic.txt --passphrase yourpassphrasehere /projects/testproject --into /encoded-project

      Note that there is a passphrase used, you must use a passphrase when specifying a license file to be searched, you will use the same passphrase when generating a license with make_license. With the options above the encoded files will search for a file called testproject_lic.txt, and will check the parent folder recursively until it finds it. If it is a valid license the script will execute normally. If it is not, you will get a simple error stating that the code has an invalid license.

      Now you have a very brief explanation of how to encode a project to use with a license file. Next we have to make a license file (For example 'testproject_lic.txt').

Generating a License file with make_license:

     The ionCube encoder folder has a make_license binary. To make the file:

 /ioncube_encoder$ ./make_license --passphrase yourpassphrasehere --header-line 'testproject Expires-on:2011-07-31' --property "UserName='some username'"

     Your passphrase can be something like: 'testproject'. Then you will get the following encoded data in the command line. Use it within the file: 'testproject_lic.txt':

testproject Expires-on:2011-07-31

------ LICENSE FILE DATA -------
9Y3V61186Z+uGrX5DcQqIdWgEdxuAOu3
h7usu8PEYkJFQBEubdW17wMrsdxqPbbt
8F5hcVmWsv4GVqEMHIWAHifozetzDxUi
YYlvE0EBqXWm5xo/t3ZsSmoMQBJet/uV
iEogy8UXHR13AWRcHvmB6NOkeJZUrgHx
jouDIXLtRas3rd1ZVnYmY9w9OrtzESLB
rgKeS+hiA99dMG/r1Tu0G+47D6DRJrGN
76SOkzIpGxKD7RMP605iLZPptor7XbqF
/s+mMbabdSZrpp43KrrB6+eFSIAbt5Xz
pKPVKXrbHdaYIzwLK+fnIRzJMJ==

--------------------------------

      Now you have the license file for the 'testproject'. To add a domain restriction such as 'www.example.com' we would add --allowed-server option:

/ioncube_encoder$ ./make_license --passphrase yourpassphrasehere --header-line 'testproject Expires-on:2011-07-31' --property "UserName='some username'" --allowed-server www.example.com

     The above will make it so that the license is only valid on 'www.example.com'. Time-based restrictions can be applied with --expire-in and --expire-on:
--expire-in 5d
--expire-in 4h
--expire-on 2012-07-31

     The first would expire in 5 days, and second in 4 hours, the last one would expire on July 31st 2012.
     Now you know how to make a license file with ioncube encoder for a php project. Try this and enjoy the licensing functionality with ioncube!
 

Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. The supported tag styles are: <foo>, [foo], [[foo]]. PHP source code can also be enclosed in <?php ... ?> or <% ... %>.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image. Ignore spaces and be careful about upper and lower case.