Re: Compiling PHP code into stand-alone windows executable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 29.07.2016 at 10:51, Jacob Kruger wrote:

> The first answer in this stack exchange post lists a whole bunch of
> means/methods to compile PHP code into windows executables:
> 
> http://stackoverflow.com/questions/9046675/convert-a-php-script-into-a-stand-alone-windows-executable
> 
> Any other suggestions?

An option would be to bundle the PHP scripts in a PHAR, and to also ship
a PHP binary, maybe mostly self-contained by compiling in the extensions
statically (doesn't work for all exts, though).  A small .bat file could
then be used to start the app.  This way you couldn't ship a single .exe
file; instead there would be a few files (perhaps as few as app.phar,
php.exe, php7.dll, php.ini, app.bat).

-- 
Christoph M. Becker

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux