Home  >  Article  >  Backend Development  >  Can php be used as an application system?

Can php be used as an application system?

藏色散人
藏色散人Original
2019-11-06 09:07:272715browse

Can php be used as an application system?

Can php be used as an application system?

First of all, the answer is yes - absolutely.

[First] Two program running modes, command line program and form program:

1. In the PHP installation program directory, there is a PHP.exe, which can be run independently , and parse the PHP code. With the support of this application, PHP code can be run like a .net program with the support of PHP.exe. The official introduction says: "PHP's command line mode can make PHP scripts completely independent of the web." The server runs alone".

Can php be used as an application system?

2. Let’s talk about form applications. PHP has an extension that facilitates the development of Windows forms. The extension is called WinBinder. WinBinder encapsulates a large number of Windows APIs. Just call it. You can easily use PHP to develop Windows Forms programs. WinBinder is just an extension, small in size, light in weight, and fast to run. However, because it seems to be an individual-led development, there are many shortcomings at present;

3. In addition to using the above extensions, PHP desktop applications There is also a sub-project called PHP-GTK, which is also dedicated to using PHP to develop desktop applications. It is directly affiliated with the official. However, due to unknown reasons, as of 2008, no new version has appeared, but it is relatively WinBinder must be mature and stable.

[Second] Compare it with languages ​​that are conventionally considered capable of developing desktop programs:

Languages ​​like C# and Java actually have backgrounds like php.exe Service support is required to be able to execute its programs in this environment. For example, if you develop a form application based on .net 4.0, if you want to run it, you must install .net 4.0 support.

At the same time, .net supports form development. There are a large number of form controls that have been developed in advance by language providers for you to choose from. You don’t have to develop them yourself. You can use them directly by just calling them.

After PHP loads the WinBinder module, its principle is basically the same as the above situation.

For more PHP related knowledge, please visit PHP Chinese website!

The above is the detailed content of Can php be used as an application system?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn