Recently done a project, in order to protect the source code of PHP, I put all the business logic of PHP (database operations and custom functions) are all encapsulated in a PHP extension.
Today I found PHP extension, you can use the Windows API (FindResource function), I put a picture file in the DLL's resource file, and then write a PHP function to get this image file, the same, will all the JS and CSS files can be compressed into this DLL extension, the implementation of all project encryption.
Hope that the master to crack.
Reply to discussion (solution)
The idea of a lonely loser, right?
Like Java, Java has a jar file to see if it can be packaged as par files or something.
Seek the master to study together
What's the point?
All encapsulated in PHP extensions?
In this way, most of the code is written in C, but also what to do with PHP, which has the advantage of PHP?
It's better to write it directly with C.
The business logic (database operations and custom functions) is encapsulated in a PHP extension
Then this extension is for your use only
So it doesn't matter "cracked."
Is the software can be encrypted, the site is not to be encrypted at all
It doesn't make much sense, no need.
Encrypt the PHP code directly with Zend. For an extended DLL, you're going to have to leave the interface to be called.
JS CSS is not necessary to put in the DLL, because open your Web page can see AH.
Where to crack the location and not to file or pass