Solved

Who can I encode my CodeIgniter PHP code?

Posted on 2011-09-22
4
1,317 Views
Last Modified: 2012-08-13
Hello,

After I complete my PHP project and deploy it in my client's server, who can I encode my project source code so my client can not copy it to another server or even code not change it.

If there is a plugin or something like for CodeIgniter framework will be appreciated.
0
Comment
Question by:Ahmed Merghani
  • 2
  • 2
4 Comments
 
LVL 13

Expert Comment

by:themrrobert
ID: 36582081
First, add code to a global include that says something like:

if($_SERVER['SERVER_NAME']!='www.myserver.com') die ('Invalid Server');

Then obfuscate your code with this:

http://www.codeeclipse.com/
0
 
LVL 8

Author Comment

by:Ahmed Merghani
ID: 36582239
Thanks for response themrrobert I test it but it did not obfuscate the variables even when I choose that option, so I do not think it is stable. And even more I do not trust it. If there is a desktop tool or steps that I can go throw, that will be help full.
0
 
LVL 13

Accepted Solution

by:
themrrobert earned 500 total points
ID: 36582661
1) Your server question is completely solved by the first part of my answer

2) Whenever possible, try to use double quotes " " to encapsulate your strings, this will help obfuscate the hardcoded strings, and yes that project is not 100% complete, but you are able to trust it.

3) With any obfuscator, be sure to thoroughly test your code to make sure it works before you deploy it. No obfuscator is 100% perfect, and some more complicated routines could possibly become broken, which is why you need to thoroughly test your code.

4) additional obfuscators:

http://www.raizlabs.com/software/phpobfuscator/
not maintained since 2007
http://pobs.mywalhalla.net/
not maintained since 2003

This is probably the best tool, and closest to what you are looking for:
http://www.seocompany.ca/software/free-encryption-software.html
There are 2 professional-grade tools here, one is 250$ and the other is $199

This is the best option, but obviously you get what you pay for. If you want free, it's going to be buggy.
0
 
LVL 8

Author Comment

by:Ahmed Merghani
ID: 36707670
Thanks themrrobert for reply and sorry for the delay.

I will check your links soonest.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
The viewer will learn how to dynamically set the form action using jQuery.
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.

776 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