EXE in PHP (Make Executable or Make Desktop Application in PHP)

Posted by Ankur Gandhi in Common | PHP



Hello Friends,I m a web developer and i always use PHP as web scripting server side language but before some days when i found that now it is possible to make EXE in PHP means now you can make Executable or make Desktop application by PHP. Isn’t it Great?

There are many complier available on web by which you can create EXE in PHP.

This program runs through dos and windows only,I don’t know About Linux.If you want to make Executable in PHP then firstly download PHP EXE Compiler/Embedder from Here.Try to explain you some more things about this.

1. First Download zip from Here.

2. Now unzip it and open Command prompt and then go to its directory. 3. Start > run… ‘cmd’
4. Use the “cd..” command to change directory. 5. Place PHP script to be compiled next to bamcompile.exe (same directory)
6. in the cmd prompt, at that directory, type:
ex: “bamcompile test.php”
variations:
“bamcompile -c test.php” gives compression.
-e:something.dll allows a DLL to be embedded

Readymade examples are given in Zipped files which you have downloaded,just try it out.

If you like my posts then please comment on it and if you want to get updates with my posts and want to share your knowledge or write your posts on HackingEthics.com then you can Register Here.

You can follow any responses to this entry through the RSS 2.0 You can leave a response, or trackback.

  • Arvind

    hi,
    i am arvind kumar sen, i am a php developer i have started work in php before 4 month and i am interested to learn php desktop application.
    please guide me how i can learn to it, and i used and see your exe in php realy it is very interesting. thanks for it

    • http://hackingethics.com/ Ankur Gandhi

      Hello Arvind,
      Firstly Thanks for your comment.
      Now i want to tell you one thing that i also dnt have any experience of desktop application in php, But i have found one new complier for PHP called Roadsend complier so try to search about it and i will also try to post new info about desktop application in PHP.
      Thanks.
      Keep Commenting. :)

  • Arvind

    hi,
    i am arvind kumar sen, i am a php developer i have started work in php before 4 month and i am interested to learn php desktop application.
    please guide me how i can learn to it, and i used and see your exe in php realy it is very interesting. thanks for it

    • http://hackingethics.com Ankur Gandhi

      Hello Arvind,
      Firstly Thanks for your comment.
      Now i want to tell you one thing that i also dnt have any experience of desktop application in php, But i have found one new complier for PHP called Roadsend complier so try to search about it and i will also try to post new info about desktop application in PHP.
      Thanks.
      Keep Commenting. :)

  • harry.sandhu7

    Plz guide me…
    I want to create a php exe application.
    plz tell me can i create a file having code like this…..

    Untitled Document

    <?php
    $str=”this is first try”;
    echo “$str”;
    print($str);
    ?>

  • harry.sandhu7

    Plz guide me…
    I want to create a php exe application.
    plz tell me can i create a file having code like this…..

    Untitled Document

    <?php
    $str=”this is first try”;
    echo “$str”;
    print($str);
    ?>

  • http://www.blazedent.com/ habicious

    The best way to build a PHP desktop application is by using PHP-GTK. There is alot of documentation and free examples floating around. It’s also easy to install using GNOPE.

    Google those two and everything you want will be there.

  • http://www.blazedent.com habicious

    The best way to build a PHP desktop application is by using PHP-GTK. There is alot of documentation and free examples floating around. It’s also easy to install using GNOPE.

    Google those two and everything you want will be there.

  • http://www.looogo-web.com/ Anwar

    wowow.. that is great !

    we must try it :)

    thanks a lot

  • http://www.looogo-web.com Anwar

    wowow.. that is great !

    we must try it :)

    thanks a lot

  • http://www.stringbisnis.blogspot.com/ Imam Zatnika W

    Asslalaamu’alaykum..

    Hi, anyone know how work as server if PHP compiled to exe ?

    Just try to speak English.. :-D :-D

    Wassalaamu’alaykum..

  • http://www.stringbisnis.blogspot.com Imam Zatnika W

    Asslalaamu’alaykum..

    Hi, anyone know how work as server if PHP compiled to exe ?

    Just try to speak English.. :-D :-D

    Wassalaamu’alaykum..

  • jennifer

    sir,
    Thanks for your information. Please tell me whether we can convert an entire PHP project to a desktop application…
    Please help..

  • http://jjj jennifer

    sir,
    Thanks for your information. Please tell me whether we can convert an entire PHP project to a desktop application…
    Please help..

  • Pingback: CyberHades » Blog Archive » De PHP a .EXE

  • Rortega

    Give a try at http://www.zzee.com PhpExe, it converts without change, web applications to desktop applications.

  • Rortega

    Give a try at http://www.zzee.com PhpExe, it converts without change, web applications to desktop applications.

  • http://phpexe.co.uk/ php exe

    Yes, I agree with Rotega, its what I use. No messing, just a few clicks and you are done – it takes the worry out of it and allows you to configure EVERYTHING. PHP EXE from zzee is where it is at with compiling to PHP2EXE.

    Peace

  • http://phpexe.co.uk php exe

    Yes, I agree with Rotega, its what I use. No messing, just a few clicks and you are done – it takes the worry out of it and allows you to configure EVERYTHING. PHP EXE from zzee is where it is at with compiling to PHP2EXE.

    Peace

  • Yuvraj Singh

    Hi guys

    is there anyway to create exe file in php without having any third party tool.

  • Yuvraj Singh

    Hi guys

    is there anyway to create exe file in php without having any third party tool.

  • http://www.ivyflux.com/ habicious

    No, there are one or two rare converters out there, but none of them work very well. Your best bet is to use PHP Gnope, .phpw files launch like normal .exe files.

    Any client you want to use PHP apps on will require an install of a third party interpreter.

  • http://www.ivyflux.com habicious

    No, there are one or two rare converters out there, but none of them work very well. Your best bet is to use PHP Gnope, .phpw files launch like normal .exe files.

    Any client you want to use PHP apps on will require an install of a third party interpreter.

  • prakash

    hii it is vey nice i want to know how to communicte with data dase using GTK

  • http://www.facebook.com/profile.php?id=100001295719441 Star White

    It’s nice to see PHPEXE being mentioned. I have been using it for about a year now and I cannot knock it. Full on awesome product! If you can develop in HTML, PHP, JS, JQ, etc you can make proper amazing products. I use INNO installer to create the installation package and you are done. GTK is fine but for me PHPEXE wins.

    • Adolf

      Star White can you please help me to create executable in php?
      By the way will the final product be opened through a browser.
      My email address is fenyiadolf@yahoo.com

  • Rugma

    I want to make php file as exe. Please give me apt solution with screenshort

  • http://www.hire-phpdeveloper.com/ Dhrumil

    Thanks Ankur Gandhi,
    I was unaware about that using PHP we can create php scirpt compiler. I was looking for a desktop application that can provide chat and email sending facility. I’ll try this compiler to convert my php script to make desktop. Thanks again.

  • Judas Tadeo

    Thanks Guys, I am Jude, trying to use BamCompiler. I have less experience with php. At the command prompt when i type the command ex:”bamcompiler connect.php”, it gives me an error that,”
    The file or directory incorrect”

  • Matt

    Can you compile PHP to exe on a web-server in real-time? For example;
    Customer pays for software
    Customer registers
    PHP compiles an exe to unlock his trial software unique for his computer
    Customer downloads unlock exe file and installs to unlock his trial software.
    I can do the rest, it’s just the compiling I can’t do.
    Can anyone help?

  • Matt

    Can you compile PHP to exe on a web-server in real-time? For example;
    Customer pays for software
    Customer registers
    PHP compiles an exe to unlock his trial software unique for his computer
    Customer downloads unlock exe file and installs to unlock his trial software.
    I can do the rest, it’s just the compiling I can’t do.
    Can anyone help?

    • Jas_ind1986

      hi matt, m also searching for the same problem…have u found some solution to this, plz help me out..my email:jas_ind1986@yahoo.co.in

  • Chetandht

    zeee phpexe

  • Ashfaq Ahmed

    Hey, its good to see that now its being famous, that my wording “You can do Everything with php”
    has some meanings lol :p
    when i started creating the desktop apps with php, there were nothing on internet regarding it, i started it from winbinder, but now there are lots of things,

    i have created many apps in php for windows,
    FTP CLIENT
    DESKTOP EMAIL
    PHP HACKING CLIENT + SERVER
    MYSQL BACKUP PRO
    ADDRESS BOOK

    and lots of more lol :p
    if any one want any app to be developed tell me :p

    Thanks

    Ashfaq Ahmed

    Senior Php Programmer + Software Engineer

  • http://freshwebmedia.com.au Joomla Australia

    I am glad to visit your blog.. I found this post is really useful one.. I love reading this kind of stuff. Your blog is one of a kind, i love the way you organize the topics. Thanks for sharing.

  • Marac

    Hi All,
    Is there a way to make POST to compiled exe file?
    I am making Flash based application and I use php to to create .jpg from array of color bytes POSTed from Flash. All works well online, but I need desktop version that should run without local server, so I guess that php-exe is good solution IF I can send data from Flash to it. Any ideas? tnx

  • Manish M Das

    How to run the exe file?

  • http://www.outsourcing-partners.com/php-programmer.html Programmer Tim

    Thanks I followed your advice and my app is up and
    running.

  • J.V

    Can’t get it to work.. When i run the compiled exe, it quickly opens a cmd window, and closes again within 0.5 seconds

    • http://cj-ramki.blogspot.in cj ramki

      same here… did you solved this issue?

  • Railguns

    is thre any soft to convert exe to PHP???

  • Nupppp

    Ashfaq Ahmed – omg u created many app!!!!!!! talking and talking.. about nothing.. u know only one thing .. forum and ask for help.. (ashfag) = plesa halp mi imo hive problum huz imo stiupido..

  • Ashish

    This is something great I will bookmark it for sure…

  • ali

    i have a php script which make database script . it print all table row but do not make it xml. ?

  • Placidiuscastus

    i have tried it!! it is pretty..!!

    • http://cj-ramki.blogspot.in cj ramki

      hey have you packaged a complete project to exe?

  • Jjagdish Salvi

    i m having the bunch of files of php project but now i want to make the exe of those file. so how it;s possible to build the package of exe.

  • Tamas

    It’s not a great solution. EXE to PHP converter would be more useful!