How to make a PHP website as a exe file?

by 13 replies
19
Hi,
How to make a PHP website as a exe file(shorcut icon for quick start) like other projects in .net?

Thanks in advance.
#programming #exe #file #make #php #website
  • Hi,

    PHP isn't .NET.
    PHP is a server-side technology. The server executes the PHP script, and sends the result to your visitor's browser. All this is mixed with some (x)HTML, CSS and JavaScript. And usually MySQL.
    What you're asking cannot be done. If you want a standalone presentation then you must make it separately.

    Seb.
  • I agree. It is a fact that PHP is entirely different from .net and hence it cannot be converted just like other .net projects. Well, I have never known of any other techniques for quick startup of PHP file. A quick search in the search engine would be great.
    • [1] reply
    • Not sure about .NET, but it IS possible to convert PHP scripts to exe files that can run on your local PC. Several software programs now exist that make this possible... the way they work is they combine your script with a minimal installation of the PHP runtime, and then wrap it all in a single exe file.

      There are several programs that do this, but this is the only one I've tried...

      ExeOutput for PHP - PHP to EXE Compiler Software - Make Windows Apps

      I haven't used it in any significant projects, but it seems to work pretty well in the limited tests I've done. Only real drawback is that the exe distributable files are pretty hefty... because of the embedded PHP runtime.
      • [ 1 ] Thanks
  • Brandon is there library's to access the Windows GUI through PHP that can be used with these compilers? Or do they just run in some sort of backwards DOS mode?
    • [1] reply
    • No, you use HTML and CSS to design your "GUI". It can compile HTML, CSS, Javascript, jQuery, and PHP... so whatever you can create with all of that is what you get. It's basically like having a website wrapped in an exe file. Unlike traditional websites/scripts though, your source code can't be accessed by the end user... and that to me is the biggest benefit of using something like this.
      • [ 1 ] Thanks
  • A direct page as .exe is possible but not easy...
    However if you want just a exe that acts as a container which opens a website that is really not that difficult.. even super old software like 'MultiMedia Builder' can do that..
    I'm sure there are many more..

    also if you just google php to exe you will find multiple solutions (some free; more difficult; paid: easier) who are able to do what you want. Note that if your site has a database etc it is more difficult.
  • Wow thats kind of cool Brandon. Im def going to check that out. If you could make remote connections to an online database that would be just sweet.
    • [1] reply
    • yes you can, you just need to include an extra dll file for mysql communication
  • Banned
    [DELETED]
    • [1] reply
  • I read not long ago that facebook created something
    like this. You take any php app and it can be compiled as C and run on any local machine as software.
    • [1] reply
  • tidesdk.org (which is the desktop version of Appcelerator/Titanium)
    • [ 1 ] Thanks
  • Nice one klickgablow.. never saw that one before and looks pretty damn strong on first sight!
  • Banned
    [DELETED]

Next Topics on Trending Feed