开发者

how to convert php script to exe? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably 开发者_如何学JAVAanswered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 10 years ago.

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?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜