Jaslabs: High performance Software

High Performance Software

Converting PHP scripts to dlls

By Justin Silverton

I came across this great open source project that allows you to convert your php scripts to a fast/cgi executable that can be executed by any web server that supports it (including apache and IIS).

From the site:

“Roadsend Compiler is an open source, native compiler for the PHP language. It compiles PHP source code to stand alone, native binaries which do not require an interpreter. Roadsend Compiler can build online web applications with Fast/CGI, offline web applications with an embedded web server (MicroServer), desktop GUI applications with PHP-GTK, and console applications. It is known to build on Linux, Windows (using mingw), and FreeBSD.”

Benefits of using the roadsend compiler

  • Faster execution time, because your php script is now a native binary and does not have to be interpreted each time it is accessed.
  • Better than a solution such as zend encoder or ion cube because it does not require the server to have any extra extensions (besides fast/cgi support installed). It also provides a good obfuscation solution.
  • The ability to create stand-alone web applications. These applications include a built-in webserver that allows the execution of php scripts as if they were a local application.

Issues to consider

  • Because this is an executable, it needs to be re-compiled for any operating system that you would like to support (freebsd, linux, windows, etc.)

more information can be found at the main roadsend website here

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • DZone
  • Slashdot
  • StumbleUpon
  • Technorati

5 Comments so far

  1. Dougal Matthews April 20th, 2007 5:37 pm

    Interesting, i wonder how much faster it is?

  2. […] In a new post to the JSLabs blog, Justin Silverton talks about a method - using the Roadsend Compiler to convert PHP scripts into Windows DLL files. I came across this great open source project that allows you to convert your php scripts to a fast/cgi executable that can be executed by any web server that supports it (including apache and IIS). […]

  3. […] Out of nowhere, the tired old dog of PHP compilation rears its ugly head. […]

  4. […] These thoughts are not revolutionary, but I think they make an important note, especially today when code generation is so popular, PHP source code to C extension conversion pops up again, and claims that source code documentation is overrated are heard (here and here). […]

  5. […] High Performance PHP hat unlängst über den PHP Compiler von Roadsend berichtet. Auf der Communityseite wird ausführlich über die Features, Installation und Bugs berichtet. […]

Leave a reply