0

hello there,

i want to make my web application to desktop application. My application is in php so i want to create a exe file from php.

is there any way ?

thanks.

7
Contributors
11
Replies
22
Views
5 Years
Discussion Span
Last Post by technoknol
Featured Replies
  • 1
    Dani 1,665   5 Years Ago

    PHP is a scripting language which doesn't get compiled into an executable (an exe) the way C or C++ would. Read More

  • 1
    diafol 3,720   5 Years Ago

    Was thinking along the lines of GTK, but then I came across this site: http://www.exeoutput.com/index.php I've never used nor have I seen it before 2 minutes ago. Read More

  • miniPHP Studio does allow you to build a desktop application using PHP. It's less than perfect and your app may require some re-engineering to go from a server to the desktop. It can work but you have to decide if it is worth the trouble or if you are better … Read More

  • 1

    you can also give[ this ](http://www.bambalam.se/bamcompile/)a try. Just use your command prompt type in the options, the location of the php files or project, type the output file e.g. file.exe , and you are good to go. You can also add an icon for your converted executable php.. Downside? The … Read More

0

no is the short answer to that, PHP is a server side logic language. You would be looking at C, or C++ something like that

1

PHP is a scripting language which doesn't get compiled into an executable (an exe) the way C or C++ would.

0

PHP is a server side scripting language. For you to convert this into a stand-alone app, you would need a compiler.

1

miniPHP Studio does allow you to build a desktop application using PHP. It's less than perfect and your app may require some re-engineering to go from a server to the desktop. It can work but you have to decide if it is worth the trouble or if you are better off just rebuilding it.

0

thanks to all.

i think diafol is right, i will try it.

let me know how you get on. looks interesting

0

€96 after initial trial period. Not cheap, but there again, looks like a serious bit of software. I'm not endorsing it though.

1

you can also give this a try. Just use your command prompt type in the options, the location of the php files or project, type the output file e.g. file.exe , and you are good to go.

You can also add an icon for your converted executable php..

Downside?
The downside is that you will have to distribute some dll files needed by your application e.g. curl dll.
It does not support php 5 and above.

Security?
Watch out for the php function RecursiveIteratorIterator.. I strongly advice you to stay away from using this, unless you have a really good intention behind your application.. would not elaborate on this, but I could already see where the endusers can be exploited by this type of application..

here is a good one... just a tiny snippet of this vulnerability

  <?php
    $dir = new RecursiveIteratorIterator(
     new RecursiveDirectoryIterator('/',true)
    );

    foreach($dir as $file){
        echo $file->getPathname(),"\n";
    }
?>

You run the script above, and you will see what are the things exposed from the enduser's files. Enduser files are exposed including the sitemanager.xml file for filezilla...

Watch out for what you wish for.....

Edited by veedeoo: more info added

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.