Is there any way to compile our PHP code into an executable

I am curious about this feature. Is it possible to make our code written in code and string compilation and make it executable and work without using a server such as Apache.

The OS environment will be the Windows family.

+4
source share
3 answers

I have never tried, but you can take a look at PHC . It seems like it's possible.

Also pay attention to hip hop . It looks good (and lately).

Edit: And for other PHP compilers see Wikipedia

+3
source

There are several applications that compress your application, web browser, and PHP into an executable file. Thus, it works as an application.

If you want to write an application on Windows using PHP, you can try Windows window bindings http://winbinder.org/ . It looks promising

I also found two Windows compilers for PHP during the search (I did not use them).

+1
source

Existing answers cover bases well enough for possible ways to compile your PHP code into an executable file. However, you may not have to go on these topics based on your question.

If all you are looking for is a way to run php scripts on Windows that are outside the Apache server, then all you need to do is install php on your Windows machine. Then you can run any php script from the command line by simply typing > PHP .php

You can download the Windows installation package for this from http://windows.php.net/download/

0
source

Source: https://habr.com/ru/post/1305782/


All Articles