how to convert php script to exe? [closed]
what is the best approach for converting php script to exe ? it should run on linux and windows.
PHP scripts already run on linux and windows, if php is installed.
Besides, what .exe
have you ever heard of that will run on linux?
Try using HipHop from Facebook. This compiles PHP down to highly optimized C++ and works on Linux. You'd have to try compiling and installing it yourself, but once you got it compiled down to C++ you can now use g++ or any other C++ compiler to create for yourself a nice executable (though not .exe as it's linux only). However, since the bulk of it will be in C++ it would be easier to modify it to run on windows.
Don't think that is possible. The entire purpose of a PHP script is to dynamically produce a response to a HTTP request on a server. Whether it is an image, XML or the good old HTML page.
Why do you want to do this?
精彩评论