php obfuscator ???

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
scheinarts
Forum Commoner
Posts: 52
Joined: Wed Jul 25, 2007 2:37 am

php obfuscator ???

Post 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!
scheinarts
Forum Commoner
Posts: 52
Joined: Wed Jul 25, 2007 2:37 am

Re: php obfuscator ???

Post 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?
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

Re: php obfuscator ???

Post 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)?
nowaydown1
Forum Contributor
Posts: 169
Joined: Sun Apr 27, 2008 1:22 am

Re: php obfuscator ???

Post 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/
scheinarts
Forum Commoner
Posts: 52
Joined: Wed Jul 25, 2007 2:37 am

Re: php obfuscator ???

Post 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?
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

Re: php obfuscator ???

Post 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.
scheinarts
Forum Commoner
Posts: 52
Joined: Wed Jul 25, 2007 2:37 am

Re: php obfuscator ???

Post 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?
Post Reply