?
Solved

Who can I encode my CodeIgniter PHP code?

Posted on 2011-09-22
4
Medium Priority
?
1,504 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 2000 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
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…
Suggested Courses
Course of the Month13 days, 15 hours left to enroll

807 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