For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > October 2004 > PHP encoder?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author PHP encoder?
Duncan Austin

2004-10-12, 3:55 am

Hi,

Does anyone know of a free or cheap php encoder so that I can protect my
code? I've tried freelock but just get errors and the commercial encoders
are way out of my budget

--
Duncan
Martin Bishop

2004-10-13, 3:56 pm

> Hi,
>
> Does anyone know of a free or cheap php encoder so that I can protect my
> code? I've tried freelock but just get errors and the commercial encoders
> are way out of my budget
>
> --
> Duncan



Sorry to be the second poster that hasn't answered your question(!) but
isn't php code safe from discovery, since it is only the results of it's
running that are sent to the browser?


Martin Cooper

2004-10-13, 3:56 pm

>
> Sorry to be the second poster that hasn't answered your question(!) but
> isn't php code safe from discovery, since it is only the results of it's
> running that are sent to the browser?
>
>

Although this is true, if you want to make a script available to customers,
then you need to give them a copy of the code. So for example, if you
decide to sell your latest program for a profit, then you would want to
encrypt the code so that you can enforce licensing costs.

Also, many encoders (such as Zend) compile PHP code into byte code.
Normally, this is done on the fly by the interpreter. But performing this
step in advance makes the code run quicker, as the webserver no longer needs
to perform that step. There is also a reduction in load under heavy site
usage, resulting in savings on hardware cost etc.

Martin


kogger

2004-10-13, 8:55 pm

Hmmm,

I didn't know that PHP did the bytecode thing. Very interesting. You
learn something new everyday. Thanks Martin

Martin Cooper wrote:
> Also, many encoders (such as Zend) compile PHP code into byte code.
> Normally, this is done on the fly by the interpreter. But performing
> this step in advance makes the code run quicker, as the webserver no
> longer needs to perform that step. There is also a reduction in load
> under heavy site usage, resulting in savings on hardware cost etc.
>
> Martin



Manuel Lemos

2004-10-13, 8:55 pm

Hello,

On 10/13/2004 08:06 PM, kogger wrote:
> I didn't know that PHP did the bytecode thing. Very interesting. You
> learn something new everyday. Thanks Martin


Actually those are called Zend OPCodes to be accurate but it is the same
principle of the byte codes.

Anyway, better then the encoders is the new PHP compiler Roadsend. It
compiles PHP into shared libraries of real machine code .

Besides that, from what I could gather the latest version features a JIT
compiler mode (Just In Time) so you can execute PHP code directly
without having to start an explicit compilation step manually. This is
good for debugging.

The code compiled by Roadsend does not use anything from the Zend engine
at runtime. This is good because it does not load all the needless fat
from Zend OPCode interpretation engine.

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
Duncan Austin

2004-10-14, 3:56 pm

On Wed, 13 Oct 2004 20:37:30 -0300, Manuel Lemos <mlemos@acm.org> wrote:

> Anyway, better then the encoders is the new PHP compiler Roadsend. It
> compiles PHP into shared libraries of real machine code .


Thanks, I'll give this a whirl.

A few people asked re the need to encode php: I'm developing a standalone
php app which then links in with a website. The advantage is that the web
site and the standalone app share the same code and interface, and I have
access to all the php goodies like image manipulation etc

--
Duncan
Duncan Austin

2004-10-14, 3:56 pm

Hmmm, $399 is still a bit out of my budget for now (but hopefuly not for
long) - I'm in South Africa and the exchange rate is a killer


On Wed, 13 Oct 2004 20:37:30 -0300, Manuel Lemos <mlemos@acm.org> wrote:

> Hello,
>
> On 10/13/2004 08:06 PM, kogger wrote:
>
> Actually those are called Zend OPCodes to be accurate but it is the same
> principle of the byte codes.
>
> Anyway, better then the encoders is the new PHP compiler Roadsend. It
> compiles PHP into shared libraries of real machine code .
>
> Besides that, from what I could gather the latest version features a JIT
> compiler mode (Just In Time) so you can execute PHP code directly
> without having to start an explicit compilation step manually. This is
> good for debugging.
>
> The code compiled by Roadsend does not use anything from the Zend engine
> at runtime. This is good because it does not load all the needless fat
> from Zend OPCode interpretation engine.
>
> http://www.roadsend.com/
>




--
Duncan
Manuel Lemos

2004-10-14, 3:56 pm

Hello,

On 10/14/2004 12:20 PM, Duncan Austin wrote:
> Hmmm, $399 is still a bit out of my budget for now (but hopefuly not
> for long) - I'm in South Africa and the exchange rate is a killer


Right, I think that $99 is an ideal price, but until they have
competition they can push it for the price they think is right. Remember
when Zend Encoder costed USD $3000? Now that Zend Encoder is technically
a much inferior solution than Roadsend, and Roadsend also offers a
native look and feel IDE (not something with extraterrestrial look and
feel in Java Swing) they may as well drop the price

--

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
Duncan Austin

2004-10-15, 8:55 am

Yes, I'm quite impressed with the roadsend features. It also says that it
alows you to bundle your PHP apps as standalone, which I'm very interested
in. I'll probably stay with my cheap but crackable meathod now in the
early stages of development and go for Roadsend once income from my app is
more definate.

It's funny, I searched the web for three days and didn't find Roadsend...

On Thu, 14 Oct 2004 15:02:12 -0300, Manuel Lemos <mlemos@acm.org> wrote:

> Hello,
>
> On 10/14/2004 12:20 PM, Duncan Austin wrote:
>
> Right, I think that $99 is an ideal price, but until they have
> competition they can push it for the price they think is right. Remember
> when Zend Encoder costed USD $3000? Now that Zend Encoder is technically
> a much inferior solution than Roadsend, and Roadsend also offers a
> native look and feel IDE (not something with extraterrestrial look and
> feel in Java Swing) they may as well drop the price
>




--
Duncan
Duncan Austin

2004-10-15, 8:55 am

On Wed, 13 Oct 2004 20:37:30 -0300, Manuel Lemos <mlemos@acm.org> wrote:
>
> Anyway, better then the encoders is the new PHP compiler Roadsend. It
> compiles PHP into shared libraries of real machine code .
>



I've compiled my code but don't know how to use the compiled exe or
libraries. I'm using Serlient to create a standalone app which combines
server and browser in one app. It uses php5 and has its own php.ini. How
do I use the exe or library compiled by roadsend? Would I use
exec("my.exe") or add libruaries to the php.ini and then call those
functions? Roadsend don't seem to have any examples in their help...

--
Duncan
Virgil Green

2004-10-15, 3:55 pm


"Duncan Austin" <telkomdsl26477@dsl512telkomsa.net> wrote in message
news:opsfwmr70b30hvbo@duncan...
>
> It's funny, I searched the web for three days and didn't find Roadsend...
>


That's odd. The search phrase "php compiler" in google yields a lengthy
search result and the very first entry is for Roadsend.

- Virgil


Manuel Lemos

2004-10-15, 3:55 pm

Hello,

On 10/15/2004 06:17 AM, Duncan Austin wrote:
> Yes, I'm quite impressed with the roadsend features. It also says that
> it alows you to bundle your PHP apps as standalone, which I'm very
> interested in. I'll probably stay with my cheap but crackable meathod
> now in the early stages of development and go for Roadsend once income
> from my app is more definate.


They used to have a quote in Roadsend pages from Rasmus Lerdorf making
big claims about the difficulty and advantage of PHP compilers. Rasmus
always opposed to people distributing closed source code, including Zend
products.

The truth is that there is a great demand for real PHP applications
protection against source code stealing. Difficult or not, Roadsend is
the best solution so far.


> It's funny, I searched the web for three days and didn't find Roadsend...


That means they have not yet learned how to optimize their site for the
search engines! ;-)


--

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
Manuel Lemos

2004-10-15, 3:55 pm

On 10/15/2004 07:45 AM, Duncan Austin wrote:
>
> I've compiled my code but don't know how to use the compiled exe or
> libraries. I'm using Serlient to create a standalone app which combines
> server and browser in one app. It uses php5 and has its own php.ini.
> How do I use the exe or library compiled by roadsend? Would I use
> exec("my.exe") or add libruaries to the php.ini and then call those
> functions? Roadsend don't seem to have any examples in their help...


No, AFAIK, Roadsend generates apache 1.3.x modules. These modules handle
the requests to ".php" pages as if they were really in the specified
locations. You do not even have to have PHP installed at all.

--

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
Ira Baxter

2004-10-16, 3:55 pm


"Duncan Austin" <telkomdsl26477@dsl512telkomsa.net> wrote in message
news:opsfr3obo130hvbo@duncan...

> Does anyone know of a free or cheap php encoder so that I can protect my
> code? I've tried freelock but just get errors and the commercial encoders
> are way out of my budget


I don't know what your budget is.
Our PHP Obfuscator costs $150.00.
Some folks think that is cheap.

See http://www.semanticdesigns.com/Prod...bfuscator.html.


--
Ira D. Baxter, Ph.D., CTO 512-250-1018
Semantic Designs, Inc. www.semdesigns.com


Duncan Austin

2004-10-17, 8:56 am

On Fri, 15 Oct 2004 11:08:44 -0300, Manuel Lemos <mlemos@acm.org> wrote:

> The truth is that there is a great demand for real PHP applications
> protection against source code stealing. Difficult or not, Roadsend is
> the best solution so far.


especially since I'm developing a standalone windows application with php.

--
Duncan
Duncan Austin

2004-10-17, 8:56 am

On Fri, 15 Oct 2004 13:21:01 GMT, Virgil Green <vjg@DESPAMobsydian.com>
wrote:

> That's odd. The search phrase "php compiler" in google yields a lengthy
> search result and the very first entry is for Roadsend.


I was searching for "encryptor, encryption, encoder" etc

--
Duncan
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com