Page 1 of 1

php obfuscator ???

Posted: Wed May 28, 2008 12:18 am
by scheinarts
Im wondering if someone knows of a way or an app to obfuscate php code. Yes I searched google and only downlodable programs writenn in C or .NET came up that are desktop apps, some free some commercial. And yes I searched these forums and only a few threads came up but nothing concise. I just need to be able to obfuscate a little script (under 200 lines). And without using any server extra components. Is anything like this available.

For example, in javascript I can take a chunk of code, and turn it into asc characters, then using eval() its executable by the browser, yet not human readable. Something in this sort of way.

Any ideas welcome. Thanks!

Re: php obfuscator ???

Posted: Wed May 28, 2008 7:47 pm
by scheinarts
i kept looking and I am on the verge of concluding that this is not possible. Only it is possible with server components or using a desktop app. Any ideas on this?

Re: php obfuscator ???

Posted: Wed May 28, 2008 9:53 pm
by JAB Creations
Obfuscate PHP?

Should we presume it's an attempt to close the source of an open source language to lock a client in to a situation in any sort of form?

...or...

Should we presume your intent is to stop PHP from being readable at the client (as in your PHP code is not being executed by the server)?

Re: php obfuscator ???

Posted: Wed May 28, 2008 10:32 pm
by nowaydown1
I don't know of any PHP obfuscation utilities, but there are commercial packages available if you're looking to keep your source code protected but still allow your application to be installed somewhere:

http://www.zend.com/en/products/guard/

Re: php obfuscator ???

Posted: Thu May 29, 2008 2:11 pm
by scheinarts
yes its a commercial project and I wouldnt want to competition to buy the app and use the php code to make a similar.
Or I dont know, maybe it is ok for the competition to look at my php code and use it to build a similar app? What do you guys think about this scenario?

Re: php obfuscator ???

Posted: Thu May 29, 2008 8:55 pm
by JAB Creations
In that case you should start a thread for that exact topic.

Then again why in the world would your competition be able to get their eyes on your code? Nothing is open source if release it to the public.

Re: php obfuscator ???

Posted: Thu May 29, 2008 9:21 pm
by scheinarts
Well the app being commercialized is a swf file that uses several php files to handle data from the server. And anyone who gets the application will have both the swf and php files on their server. So thats why.
There's gotta be a way to obfuscate code so that is not human readable yet readable by the server, I would think. Dont know why I would need to start a new thread if this is pretty specific to that, isnt it?