ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-gtk-general
php-gtk-general
Re: [PHP-GTK] newbie needs help
by Jake Cobb other posts by this author
Jul 20 2007 1:01PM messages near this date
Re: [PHP-GTK] newbie needs help | Re: [PHP-GTK] newbie needs help
Hello,

In regards to Roadsend,  PHP-GTK 2 doesn't support PHP < 5.1.  Also, PHP 
announced the end of life for PHP 4 a week ago; it will be unsupported 
except for critical security issues at the end of this year.

I researched these  compiler/encoders quite a bit recently.  From the 
information I found, it seems like encoding to PHP byte code is just a 
step beyond obfuscating your script source before distribution.  I see 
the real benefit of encoding as saving PHP the work of encoding the 
script into PHP byte code at run-time, not security. This may be a nice 
performance boost in a web setting where the encoding happens with each 
request, but I think a desktop application would not see much benefit 
unless it was written in a very spawned-process oriented manner.  Your 
string literals and such can be read out of the bytecode; bcompiler 
warns you not to think you can hide a password this way. 

 From php.net:
"In terms of code protection, it is safe to say that it would be 
impossible to recreate the exact source code that it was built from, and 
without the accompanying source code comments. It would effectively be 
useless to use the bcompiler bytecodes to recreate and modify a class. 
However it is possible to retrieve data from a bcompiled bytecode file - 
so don't put your private passwords or anything in it."

For those who are already encoding their scripts, is your goal 
performance, security or simply trying to prevent users from borrowing 
or modifying your code?  My impression is that encoding may help 
performance but is only as effective in the other two areas as any 
obfuscation technique in that it may reduce the set of people who are 
able to get into the works but is not preventing a knowledgeable person 
from doing so.

-Jake Cobb

Cagdas CUBUKCU wrote:
>  Roadsend may help you with your problem. With Roadsend you can compile 
>  PHP
>  and PHP-GTK together. I haven't tried it, but it says so. People say that
>  Roadsend is quite successful.
> 
>  www.roadsend.com
> 
>  It doesn't support PHP 5 yet.
> 
> 
>  There is also PHP Priado Blender you may want to take a look:
>  http://www.priadoblender.com/
> 
> 
>  As suggested before, bcompiler is a PECL package that is another good 
>  option
>  for compiling PHP&PHP-Gtk.
> 
>  http://pecl.php.net/package/bcompiler
> 
> 
>  Hope this helps
>  -Cagdas
> 
>  On 7/19/07, blckspder <blckspder@[...].com> wrote:
> >
> >
> > Hello,
> > I am a newbie to PHP-GTK... Ive searched the forum but maybe was looking
> > for
> > the wrong terms.. I created a small and simple app with php-gtk.. but 
> > how
> > to
> > I compile it for release so I can install/run on other machines?? Please
> > let
> > me know thanks.
> > -- 
> > View this message in context:
> > http://www.nabble.com/newbie-needs-help-tf4114688.html#a11700926
> > Sent from the Php - GTK - General mailing list archive at Nabble.com.
> >
> > -- 
> > PHP-GTK General Mailing List (http://gtk.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> 

-- 
PHP-GTK General Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thread:
Blckspder
Cagdas CUBUKCU
Jake Cobb
Thomas Favennec
Janosch Graef
Benjamin Smith
Benjamin Smith
Steph Fox
Steph Fox
Blckspder
Elizabeth Smith
Blckspder
Mr. Dreadsoft
Jake Cobb

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved