1

Is it possible to make from a HTML5-APP (PHP,SQLITE,HTML,CSS,JS) a installable Windows Software in c#? The software must start PHP (5.4), and must just load the document-root in the webbrowser object.

In theory it should work without problems. But what about protecting this code? Is it possible to protect at least the PHP part? Will ioncube or zend-guard work on PHP 5.4's embeded server? And is it possible to hide the shell window, which will open everytime, when i start the PHP Webserver via cmd?

Or do you know an alternate, how i can make a software from a HTML-5 (with PHP) App?

mr_app
  • 1,292
  • 2
  • 16
  • 37

3 Answers3

1

Your choosing the wrong language. PHP, HTML, JS, CSS and SQLLite are separate technologies.

I'd suggest writing the app in another language capable of producing an executable like C / C++ (and one that can plug into to SQLITE fairly easy).

Andrew Berridge
  • 451
  • 5
  • 15
  • I know that this is not the common way. I worked before with visual basic+c#. And its ultra hard to design a pretty gui. IN HTML this is basic stuff... Why should i not use it? – mr_app Aug 12 '13 at 15:20
  • @mr_app Because then you end up with the exact problem you're having now. It's not intended for that purpose. If you want a pretty gui, look into WPF. – Sylverdrag Aug 14 '13 at 04:24
  • Thank. I know WPF. Its OK. I found a good solution, which i will test in the next days. PHPDock must do exacly what i need. But their demo is not working on my PC. They are selling a webbrowser with embedded webbrowser(with PHP etc..) – mr_app Aug 14 '13 at 09:04
1

If you want to create a installer out of HTML5-APP (PHP,SQLITE,HTML,CSS,JS) , take a look at bitnami package, it may solve your problem, if you have any explicit reason to use C#, and then you have see its library or namespace which may give you installer capability. However your question is unclear, can be be more clear?

AsthanaMe
  • 15
  • 8
0

You can embed a Chrome browser in C# using the CefSharp project. You would also need to embed some webserver (php built-in webserver might work, but it's single threaded so it might be an issue).

If it doesn't necessarily need to be C#, then take a look at the PHP Desktop project that is using C++ to embed a Chrome engine, a multithreaded webserver Mongoose and a PHP interpreter. Sources can be protected using many available php encoders, see the KnowledgeBase wiki page on the project site for details.

Czarek Tomczak
  • 20,079
  • 5
  • 49
  • 56