is there any possibility make dot exe file… i want to make a executable file using php, please suggest me to do the exe file all the replays will appreciated…. thanks in advance…
@JTweedieNov 15.2010 — #I doubt there is a way to compile PHP into an EXE, but I suppose you could do something similar.
You could build a simple program in something such as VB. Just build a form, add a browser control to it, and make it direct to the script when the program starts.
You would however need to have the server software running, which I assume is the problem you are trying to avoid?
@criterion9Nov 15.2010 — #If you have php-cli enabled (on by default) then php files are already executable just like .sh (for *nix) and .bat (for Windows) files from the command line. What is the final goal of turning the php files into "exe" files?
Php can execute other programs/scripts that can compile or build executables. Check out exec as one example of a way to call a command-line compile tool (such as javac).
@svidgenNov 15.2010 — #I think the important question here is ... why?
The answer that's going to suit you best depends a good deal on what you're trying to accomplish. Do you need a distributable executable? Do you simply want to run PHP from the command line? Are you looking for an efficiency gain? etc.