Go Back   SitePoint Forums > Forum Index > Program Your Site > PHP > PHP Application Design
Newsletter FAQ Members List Calendar Mark Forums Read

New to SitePoint Forums? Register here for free!

SitePoint Sponsor
 
Reply
 
Thread Tools Display Modes
Old Jul 4, 2002, 20:49   #1
DR_LaRRY_PEpPeR
Making a better wheel
silver trophy
 
DR_LaRRY_PEpPeR's Avatar
 
Join Date: Jul 2001
Location: Missouri
Posts: 3,425
Thumbs up a cheap alternative to Zend Encoder for encoding PHP scripts

i know people have asked here before about ways to encode your PHP scripts without buying the expensive Zend Encoder. so i thought i'd let you know that i noticed a new product called the PHP Encoder on the PHP Accelerator site the other day.

the Encoder looks like it might be done by the same guy as the Accelerator (or at least he's involved with it). according to talk in the forums, it will be a Web based service first where you can upload your scripts and have them encoded. i hear it may be as cheap as $1 for small scripts. pretty good compared to Zend's product. they say you will also be able to buy the program for use on your system later (like Zend's).

to decode scripts from Zend's Encoder, you need to have the Zend Optimizer. PHP Encoder will have a free decoder available that, i believe, is a PHP extension. the next versions of PHP Accelerator will also support decoding, which should be cool.

i noticed in the forum that they're supposed to start beta testing today. i don't know how many people actually want to protect their code, but this sounds promising for those who do. just wanted to let you know.
__________________
- Matt
Dr.BB - Highly optimized to be 2-3x faster than the "Big 3."
"Do not enclose numeric values in quotes -- that is very non-standard and will only work on MySQL." - MattR
DR_LaRRY_PEpPeR is offline   Reply With Quote
Old Jul 5, 2002, 00:00   #2
ckchin
SitePoint Evangelist
 
ckchin's Avatar
 
Join Date: Mar 2002
Location: msia
Posts: 487
I think zend should reduce the price of their product. The Zend encoder is considered EXTREMELY expensive!!! Who afford to buy this product? Normally SOHO users cannot afford this. Price around USD30-50 is reasonable. I am surprised no one c**** it?
ckchin is offline   Reply With Quote
Old Jul 18, 2002, 12:52   #3
Omair Haroon
SitePoint Wizard
 
Join Date: Dec 2000
Location: Karachi, Pakistan
Posts: 913
Hello,

I don't think it would run in the long run. Because most of the Hosting Providers (atleast me) don't install any mods of PHP until unless I have asked any one from the PHP Development Team.

Also, the most important thing is there are very few hosts that are willing to install stuff like this as this may also have any conflicts with Zend Optimizer.

Most of all, I have also heard that Zend Accelerator have problems with Zend Encoded files.

-Omair
__________________
36Host.com - $36/year web hosting [affiliates earn 30%]
* Affordable Small Business Web Hosting since 2003! *
"500mb space, 10gb bandwith, 50 pop/ftp accounts, php,
mysql, pre-installed php scripts, 24/7 support & more...."


Omair Haroon is offline   Reply With Quote
Old Jul 22, 2002, 15:49   #4
scoates
purple monkey dishwasher
 
scoates's Avatar
 
Join Date: Nov 2001
Location: Montreal
Posts: 805
Before last week, I much appreciated Zend Encoder. It was simple to use, and always worked.

I've wasted somewhere around 15 hours in the past 2 weeks working around ZE2.0x bugs. I'm not a happy consumer.

First, __FILE__ doesn't work in ZE2. It gets replaced by the path where it was ENCODED, not where it's EXECUTED. This is wrong. I emailed Zend, they told me to use zend_loader_current_file() in place of __FILE__. That seemed to work, but now include_once and require_once break with that function.

I'm not pleased at all.
I'll definitely look into this service.

S
scoates is offline   Reply With Quote
Old Jul 22, 2002, 19:27   #5
phpa
SitePoint Member
 
Join Date: Mar 2002
Posts: 7
The Encoder is Launched

Hi, Thanks for discussing the encoder. Here are a few comments on the points raised.

Quote:
Before last week, I much appreciated Zend Encoder. It was simple to use, and always worked. I've wasted somewhere around 15 hours in the past 2 weeks working around ZE2.0x bugs. I'm not a happy consumer. First, __FILE__ doesn't work in ZE2. It gets replaced by the path where it was ENCODED, not where it's EXECUTED. This is wrong. I emailed Zend, they told me to use zend_loader_current_file() in place of __FILE__. That seemed to work, but now include_once and require_once break with that function. I'm not pleased at all. I'll definitely look into this service.
__FILE__ works fine with the ionCube encoder (www.ioncube.com/encoder/ or www.php-encoder.com). But. the new zend engine (ZE2 - or did you mean zend encoder 2, I was confused) isn't supported yet as the new engine is only about 70% complete and won't be released until into 2003. By then or before there should be support, and with PHPA.

Encoding of files up to and inlcuding with PHP 4.3.0dev is supported and works fine.

Quote:
Hello, I don't think it would run in the long run. Because most of the Hosting Providers (atleast me) don't install any mods of PHP until unless I have asked any one from the PHP Development Team.
So just ask members of the team then. Quite a few people can vouch for PHPA, myself, and one or two for the encoder. Some members of the PHP Group use PHPA, and *many* outside the group, includiong hosting providers, and including Yahoo!

Quote:
Also, the most important thing is there are very few hosts that are willing to install stuff like this as this may also have any conflicts with Zend Optimizer.
I have to disagree. The most important thing is probably that hosts remove ZO and install something better, and for product purchasers to lobby vendors to encode with alternatives to Zend, so that they can take advantage of a tool like PHPA.

Most sites don't run ZEncoded files, and the performance gained from a tool such as PHPA will typically far exceed the gains from ZO. Comparing them is akin to comparing the proverbial tortoise and hare. Companies that do produce ZEncoded files should be pursuaded to encode with other tools as well. Ok so I'm biased, but the combination of cheap compiled code encoding from the PHP Encoder and support with the free PHP Accelerator, giving same performance as Zend Acc, ia a far more compelling combination in my mind than ZE files with ZO and probably no ZA.

Quote:
Most of all, I have also heard that Zend Accelerator have problems with Zend Encoded files.
And so all the more reason to use the ioncube PHP Encoder and PHPA as, from release 1.3.2, they work together. Release 1.3.2 actually won't cache encoded files for security reasons (encoded files go a bit aster than source anyway and so that can't be bad), but release 1.4 of PHPA will probably support caching. Caching will be an option selected at encode time by the encodee.

nick
phpa is offline   Reply With Quote
Old Jul 22, 2002, 20:49   #6
scoates
purple monkey dishwasher
 
scoates's Avatar
 
Join Date: Nov 2001
Location: Montreal
Posts: 805
I was talking about Encoder 2 whenever I said "ZE2" or "ZE". Thanks for the info.

S
scoates is offline   Reply With Quote
Old Jul 24, 2002, 08:37   #7
okrogius
SitePoint Guru
 
okrogius's Avatar
 
Join Date: Mar 2002
Location: US
Posts: 633
Quote:
Originally posted by Omair Haroon
Hello,

I don't think it would run in the long run. Because most of the Hosting Providers (atleast me) don't install any mods of PHP until unless I have asked any one from the PHP Development Team.

Also, the most important thing is there are very few hosts that are willing to install stuff like this as this may also have any conflicts with Zend Optimizer.

Most of all, I have also heard that Zend Accelerator have problems with Zend Encoded files.

-Omair
The only case where zend encoder fiels with conflict with zend accelerator is when zend encoder TRIAL versin is used.
okrogius is offline   Reply With Quote
Old Jul 24, 2002, 08:54   #8
scoates
purple monkey dishwasher
 
scoates's Avatar
 
Join Date: Nov 2001
Location: Montreal
Posts: 805
Note:

Zend has got back to me about the require_once and include_once problem.

I have a patched ZendOptimizer.so that doesn't exhibit this problem.

Look for Optimizer 1.3.2 within the next "couple of days".

S
scoates is offline   Reply With Quote
Old Sep 2, 2002, 10:32   #9
anilgk
SitePoint Member
 
Join Date: Sep 2002
Posts: 11
How about PHPGuardian (http://www.phpguardian.com)?
anilgk is offline   Reply With Quote
Old Sep 3, 2002, 12:14   #10
Jinx
Non-Member
 
Jinx's Avatar
 
Join Date: Apr 2002
Location: Nebraska
Posts: 180
PHPGuardian to is a bit pricey.
Jinx is offline   Reply With Quote
Old Sep 3, 2002, 12:23   #11
anilgk
SitePoint Member
 
Join Date: Sep 2002
Posts: 11
Its not cheap but its not as costly as zend for sure! Its a fraction of what zend encoder costs plus this one has a life time licence which sadly zend doesnt offer. I also read that IonCube is coming out with a phpguardian type of version which i am sure would be competitively priced too.
anilgk is offline   Reply With Quote
Old Sep 3, 2002, 12:33   #12
scoates
purple monkey dishwasher
 
scoates's Avatar
 
Join Date: Nov 2001
Location: Montreal
Posts: 805
Zend Encoder Perpetual License: $2400
Zend Encoder 1 yr.: $960
URL to Zend website: Free
Teaching anilgk a valuable lesson about not speaking factually about something without knowing the facts: Priceless.

S
scoates is offline   Reply With Quote
Old Sep 3, 2002, 12:39   #13
anilgk
SitePoint Member
 
Join Date: Sep 2002
Posts: 11
Hey, isint that what I said??? I said that phpguardian is a fraction of what zend costs and has a life time licence which zend doesnt offer. You have already given the facts about zend which is what I said in the first place without giving the actual figures. The figures for phpguardian are it costs $250 for a life time licence.

I dont think I mentioned any wrong facts in my previous post.
anilgk is offline   Reply With Quote
Old Sep 3, 2002, 12:43   #14
anilgk
SitePoint Member
 
Join Date: Sep 2002
Posts: 11
P.S. I was trying to compare the zend's cheapest version of encoder with phpguardian. I hope that makes you feel fine.
anilgk is offline   Reply With Quote
Old Sep 3, 2002, 12:45   #15
scoates
purple monkey dishwasher
 
scoates's Avatar
 
Join Date: Nov 2001
Location: Montreal
Posts: 805
Not that I'm trying to start (or continue) a flamewar, but my point was that Zend DOES offer a "life time" license. That's the perpetual license I mentioned.

I concur, however, that the price of Zend Encoder is much higher than that of PHP Guardian.

S
scoates is offline   Reply With Quote
Old Sep 3, 2002, 12:47   #16
anilgk
SitePoint Member
 
Join Date: Sep 2002
Posts: 11
Exactly!
anilgk is offline   Reply With Quote
Old Sep 3, 2002, 12:52   #17
anilgk
SitePoint Member
 
Join Date: Sep 2002
Posts: 11
anilgk is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread | Next Thread »

Thread Tools
Display Modes

 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

 
Forum Jump


All times are GMT -7. The time now is 21:13.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright 1998-2009, SitePoint Pty Ltd. All Rights Reserved