code security question

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Guy
Forum Commoner
Posts: 53
Joined: Sun Jan 12, 2003 3:34 am

code security question

Post by Guy »

I'm writing a site which suppose to be sent to the clients and installed by them on their servers.
the installation includes putting all the php files on their computers( which will function as the web site server).
is there a way for me to encrypt the code so he wont be able to view my sources and change\use them.
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Guy wrote:is there a way for me to encrypt the code so he wont be able to view my sources and change\use them.
The users are going to have to be able to use your code in order to run it though :wink: .

You could look into the products offered by Zend:
http://www.zend.com/store/products/zend ... -suite.php

A low tech option is to remove any linebreaks from the code so all the code is on one line and to use cryptic variable names so it's not obvious what things are doing. But that's a delaying tactic rather than a solution.

Mac
Post Reply