Mixing encoded and unencoded code

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
User avatar
greyhoundcode
Forum Regular
Posts: 613
Joined: Mon Feb 11, 2008 4:22 am

Mixing encoded and unencoded code

Post by greyhoundcode »

As someone who has not yet used IonCube or Zend's equivalent, can anyone tell me if any issues arise from using an encoded PHP file within an application that is unencoded.

Specifically, I am thinking of encoding a plugin for Wordpress: assuming the server is set up to deal with encoded files etc, does this present any problem (the rest of the Wordpress installation will not be encoded, so I'm wanting to mix and match here)?
User avatar
Stryks
Forum Regular
Posts: 746
Joined: Wed Jan 14, 2004 5:06 pm

Re: Mixing encoded and unencoded code

Post by Stryks »

I've never used ioncube, but I've run mixed file schemes with Zend and NuCoder without any drama. The encoder usually has an option to dissalow an unencrypted file to be used with an encrypted file, but it's off by default I think.

Why dont you download the trial version of Zend (for example) and upload the file and see how you go. I cant forsee any problems though.

Cheers
User avatar
greyhoundcode
Forum Regular
Posts: 613
Joined: Mon Feb 11, 2008 4:22 am

Re: Mixing encoded and unencoded code

Post by greyhoundcode »

Might give that a try then. Incidentally, have you used NuCoder on a shared hosting account?
User avatar
Stryks
Forum Regular
Posts: 746
Joined: Wed Jan 14, 2004 5:06 pm

Re: Mixing encoded and unencoded code

Post by Stryks »

Yeah ... I have a few active projects that use NuCoder on shared servers. It was a bit of a hassle to find a host willing to run the PHP extension, especially Aussie servers, but now I have a few options.

Like ioncube, you can use a runtime loader to load the extension, but it's not the optimal solution.
Post Reply