LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   PHP optimization & storing compiled files. (http://www.linuxquestions.org/questions/linux-server-73/php-optimization-and-storing-compiled-files-775830/)

sanimfj 12-15-2009 12:51 PM

PHP optimization & storing compiled files.
 
Hello,

short version:
Anyone know of a working maintained project that allows saving compiled php scripts and running my server off of that without the source scripts?



longer:

I am currently running a server with a fair bit of PHP back-end programming that I have developed. I have been researching PHP optimization to increase server performance. It seems that many of the most successful projects that speed up php do so by pre-compiling the scripts and storing the byte-code in memory.

It seems that there were a few projects that allowed you to save this compiled binary and use it instead of the plain-text scripts. This is particularly interesting to me as I am also looking to obfuscate my code before distributing it to some not-necessarily-trustworthy associates. If I could do this I could kill two birds with one stone. The only issue is that all the projects I have found that allow you to run from only compiled files without the scripts are now dead / unmaintained / defunct / dysfunctional


Anyone know of a working maintained project that allows saving compiled php scripts and running my server off of that without the source scripts?


thanks for your help.

janoszen 12-17-2009 02:52 AM

Several
 
There are several byte code caches out there. Just to name a few: Zend Guard / Optimizer, eAccelerator, ionCube, APC, etc.

Keep in mind, that this is not a holy grail. If your code is slow, it will be slow with the cache as well.

Rudy 12-17-2009 02:10 PM

I'm not sure if this is anything like what you're looking for, but I overheard my coworker say "php compiler" and I remembered seeing this post. So for what it's worth check out: http://www.roadsend.com/home/index.php?pageID=compiler, http://www.phpcompiler.org/ and http://quercus.caucho.com/.


All times are GMT -5. The time now is 10:17 PM.