By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,722 Members | 1,227 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,722 IT Pros & Developers. It's quick & easy.

protect source code

P: n/a
Hi,
Is it possible to hide a source code PHP in order to protect it,
I mean, I'm developpind a web solution for customers and I don't like that
the customer or the host see my code.

Thanks.
Jul 17 '05 #1
Share this Question
Share on Google+
9 Replies


P: n/a
On Tue, 5 Oct 2004 17:26:07 -0400, someone posing as toufik toufik chisled
in the wall:
Hi,
Is it possible to hide a source code PHP in order to protect it,
I mean, I'm developpind a web solution for customers and I don't like that
the customer or the host see my code.

Thanks.


Lot's of ways.

1. Compile it - oh, wait this is php...

2. obsfucate it - there are many tricks to this.
--
kai - filesiteguy at yahoo dot com
www.perfectreign.com || www.filesite.org || www.gamephreakz.com
"I got a Rock!" - C. Brown

Now playing: "Cactus World News - Frontiers"
Jul 17 '05 #2

P: n/a
toufik toufik wrote:
Is it possible to hide a source code PHP in order to protect it,
I mean, I'm developpind a web solution for customers and I don't like that
the customer or the host see my code.


One solution is

Zend Encoder:
http://www.zend.com/store/products/z...coder.php?home

--
USENET would be a better place if everybody read: | to email me: use |
http://www.catb.org/~esr/faqs/smart-questions.html | my name in "To:" |
http://www.netmeister.org/news/learn2quote2.html | header, textonly |
http://www.expita.com/nomime.html | no attachments. |
Jul 17 '05 #3

P: n/a
In article <Kj********************@news20.bellglobal.com>,
"toufik toufik" <to*****@sympatico.ca> wrote:
Is it possible to hide a source code PHP in order to protect it,
I mean, I'm developpind a web solution for customers and I don't like that
the customer or the host see my code.


Depends on what you mean by "hide it". Hide it from _what_?

You can't hide it from the web server or you won't be able to display
pages. If the customer has shell access to the server, you _may_ be
able to hide that from them if the file permissions are set correctly.

But if you're trying to "compile" the code in such a way that they can
look at the file but don't know what it's doing, that can only be done
minimally as has been previously discussed.

If you want to make the source code unavailable, switch to a compiled
language like C and write it as a CGI program. Otherwise, there's only
so much you can do to "hide" the source code in php, perl, or python.

You could switch to Java, but portability might be a problem, as well as
scaling to more traffic.

--
DeeDee, don't press that button! DeeDee! NO! Dee...

Jul 17 '05 #4

P: n/a
filesiteguy wrote:
1. Compile it - oh, wait this is php...


Use the Zend Encoder:
http://www.zend.com/store/products/zend-encoder.php

Regards,
Matthias
Jul 17 '05 #5

P: n/a
Hello,

On 10/05/2004 06:26 PM, toufik toufik wrote:
Is it possible to hide a source code PHP in order to protect it,
I mean, I'm developpind a web solution for customers and I don't like that
the customer or the host see my code.


You may want to try RoadSend, the first and so far the only real PHP
compiler. It generates really executable code from PHP scripts, as
opposed to just encoded byte codes which is what PHP encoders do. Not
only it will protect your code irrevesibly but it seems extraordinarily
fast.

http://www.roadsend.com/

--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
Jul 17 '05 #6

P: n/a
Thanks friends.

"toufik toufik" <to*****@sympatico.ca> wrote in message
news:Kj********************@news20.bellglobal.com. ..
Hi,
Is it possible to hide a source code PHP in order to protect it,
I mean, I'm developpind a web solution for customers and I don't like that
the customer or the host see my code.

Thanks.

Jul 17 '05 #7

P: n/a
toufik toufik wrote:
Is it possible to hide a source code PHP in order to protect it,
I mean, I'm developpind a web solution for customers and I don't like that
the customer or the host see my code.


Here's a FREE solution that I have installed:

http://sourceforge.net/projects/turck-mmcache/

I have yet to actually test it yet, but it looks good to me so far.
(I'll know more when I start testing it.)

--
Justin Koivisto - sp**@koivi.com
http://www.koivi.com
Jul 17 '05 #8

P: n/a
Don't use an obfuscator - there are several programs available on the
web (BeautifyPHP, and a class or two at phpclasses.org) that can
recover obfuscation.
Jul 17 '05 #9

P: n/a

"toufik toufik" <to*****@sympatico.ca> wrote in message
news:Kj********************@news20.bellglobal.com. ..
Hi,
Is it possible to hide a source code PHP in order to protect it,
I mean, I'm developpind a web solution for customers and I don't like that
the customer or the host see my code.


You can obfuscate the source code.
This makes it typically unreadable by people.

Some claim that if you prettyprint an obfuscated
code, you can read it. Not if the comments
are gone, and the variable names are scrambled.
Then it becomes a hard problem in reverse-engineering.

See http://www.semanticdesigns.com/Produ...bfuscator.html.
--
Ira D. Baxter, Ph.D., CTO 512-250-1018
Semantic Designs, Inc. www.semdesigns.com
Jul 17 '05 #10

This discussion thread is closed

Replies have been disabled for this discussion.