Can PHP be used to make desktop application or only make web-based application? [closed]
开发者_运维知识库
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this questionCan anybody tell me is a PHP desktop application possible? Like software we install on our computer system?
It is definitely possible to make desktop applications in PHP.
If you're looking for a starting place, I would check out (to cover the very basics):
Building Desktop Applications with PHP
Have a look at:
- php-gtk
- winbinder
PHP also comes with ncurses support if you are happy to deal with a character based front end.
However for standalone apps, you could do a lot worse that looking at HTML5's offline capability.
its possible to make desktop applications using php. You can run your php independent of you apache server.
Yes, you can use bcompiler to enable the production of php-gtk applications that could be used on client desktops, without the need for a php.exe. However, just because it is possible, does not mean it is practical. There is better platforms for developing desktop applications available.
Is worth noting you can also use Phalanger (PHP in .net) and the .Net framework to do some of the same stuff. Interesting, but useless, really.
PHP-GTK, WinBinder, etc... are very outdated and may not work in all three platforms. But the new opensource alternative is PHP Nightrain and it works great in all three platforms. Since the source is available you can always compile to any architecture you may need.
Here are some resources to help you develop cross platform GUI applications with PHP Nightrain:
http://www.naetech.com/php-nightrain
http://www.naetech.com/developing-ribbon-desktop-application-php.html
http://www.youtube.com/watch?v=GXt8erPLf4o
Hope it helps!
精彩评论