[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Who can I encode my CodeIgniter PHP code?

Posted on 2011-09-22
4
Medium Priority
?
1,467 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
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

656 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