Home  >  Article  >  Backend Development  >  Can I write directly without installing the php environment?

Can I write directly without installing the php environment?

藏色散人
藏色散人Original
2022-11-08 09:50:191437browse

You cannot write directly without installing the PHP environment. If you want to run a PHP program, you must install the PHP environment. This is the basic condition. You can use phpstudy, PHPWAMP, WampServer, XAMPP and other integrated software to install the PHP environment. .

Can I write directly without installing the php environment?

The operating environment of this tutorial: Windows 7 system, PHP version 8.1, Dell G3 computer.

Can I write directly without installing the php environment?

No, if you want to run a PHP program, you must install a PHP environment. This is a basic condition. If you are not familiar with installation, you can use phpstudy, PHPWAMP, WampServer, XAMPP and other integrated software to install it. It is very convenient. .

Related introduction:

You should often hear the word WAMP, so what does WAMP mean?

Apache Mysql PHP under Windows is called WAMP.

The Apache Mysql PHP under Linux system is called LAMP.

The difference between WAMP and LAMP lies in the operating system. In short, it is just a name that facilitates the distinction.

This WAMP environment can be integrated, or it can be WAMP that you install independently. Most of the WAMP that is usually mentioned refers to integrated.

WAMP can also be divided into the following three categories:

1. PHP integrated environment (integrates all necessary components. After installing the integrated environment, you can run the website directly, although it is not required Install each component separately, but you still need to install the VC runtime library additionally)

2. PHP independent installation version environment (Installing each component independently, the operation is cumbersome and takes a certain amount of time, which is helpful to improve your own Configuration capabilities, uninstalling is also troublesome for novices.)

3. PHP green integrated environment (relatively speaking, it is a green PHP integrated environment. It integrates the VC runtime library. There is no need to install VC. After decompression, you can Use it directly, just close the service when not in use, and it will not stay in the system.)

The choice of PHP integrated environment is whether to choose the integrated version or the green integrated version.

Most of the current PHP integrated environments are not pure green. You need to install the VC runtime library yourself after installation. If you don’t know the PHP environment well enough, uninstalling is inconvenient, sometimes because multiple PHPs are installed. Integrated environment, even if you use the uninstall function of the PHP integrated environment, it is difficult to uninstall. You will encounter various unknown errors after uninstalling. After uninstalling, you may not be able to install and use the PHP environment normally, so it is recommended to use the pure green version. PHP integrated environment, such as PHPWAMP integrated environment. PHPWAMP is a completely green PHP integrated development environment that runs under Windows systems. It can run normally even if components that are missing necessary dependencies are missing. There is no need to install troublesome VC runtime libraries, repair missing components of the system, or run regardless of dependencies. It is currently the most convenient and professional PHP integrated environment. It has development mode and operation mode and can be used as a server environment. It is the only environment that supports custom settings: the custom function can freely customize all historical PHP versions of 32-bit and 64-bit systems, and automatically and intelligently match the relevant dependencies required for 32-bit systems and 64-bit systems to run perfectly. A powerful common tool that can forcefully modify MySQL passwords in any environment, remove ports, forcefully unoccupy, port scan, remove garbled characters, etc.

Can I write directly without installing the php environment?

So what is the difference between the PHP integrated environment and the one installed by yourself?

Give an example to understand: You like to eat cakes. You can make cakes at home, or you can buy ready-made cakes from outside. If you know more about cakes, you can even make cakes that are more delicious than those in a cake shop. On the contrary, if you don’t know how to make cakes at all, you can just buy them ready-made. The same is true for the PHP integrated environment. If you know the PHP environment well, you can configure it yourself. It is recommended that novices build the PHP environment manually several times to deepen their understanding. In order to facilitate testing, we can directly use the ready-made PHP integrated environment. However, most integrated environment installation packages are relatively small in size because they have been streamlined and stripped of related components. They are incomplete under Windows. The main purpose of the PHP integrated environment is for local debugging. If you want to build a website directly on the server, it is recommended to use some relatively complete and non-castrated version of the PHP integrated environment. The PHPWAMP green integrated environment is preferred (all integrated components are Full version, without castration).

In short, if you think you know the configuration of the PHP environment well, then please configure it yourself. If you lack knowledge in this area, you can directly use the PHP integrated environment.

Which integrated environment is better to build a website on a Windows server?

It is recommended that you use the linux system first. If you must use the win system, it is recommended to use PHPWAMP's automatic restart function

In Windows systems, PHPWAMP is more suitable for servers than other integrated environments. The specific reasons are as follows:

What are the differences and advantages between PHPWAMP and other integrated environments?

Functional diversity: PHPWAMP supports IIS, Nginx, and Apache multi-functional site management systems, and can run unlimited different PHP versions at the same time.

Powerful customization: Supports unlimited addition of PHP and Mysql versions, without considering system digits and various dependencies, the software automatically matches required dependencies.

Environment stability: The integrated PHP, Mysql, Web server, etc. are all complete versions, which are more stable than other integrated environments without being streamlined and castrated.

Cost of learning: PHPWAMP comes with complete usage documentation. The software author personally edits the usage documentation, and the explanation content is easy to understand and allows you to get started quickly.

Intelligent automation: PHPWAMP's own "forced removal of environmental obstacles" can automatically solve various environmental errors caused by most systems.

Operation guarantee: PHPWAMP comes with a crash restart function. If the website service crashes, it will automatically restart to ensure the normal operation of services such as apache and Nginx.

Error troubleshooting: Once an error such as startup failure occurs, PHPWAMP will display friendly prompts and provide a complete solution.

System compatibility: The environment fully matches 32- and 64-bit systems, and custom intelligent matching requires dlls and vcs for 32- and 64-bit systems. No installation is required for pure greening.

Software convenience: PHPWAMP is highly integrated and can run normally when the system lacks DLL and VC runtime libraries, without the need to install various environmental dependencies.

Configuration convenience: To modify the PHP configuration file of a certain site, you only need to right-click to open it, and the system will automatically open the configuration file corresponding to the site.

Powerful functionality: A powerful common tool that can forcefully modify the Mysql password in any environment, remove ports, forcefully unoccupy, port scan, remove garbled characters, etc.

The site management function is powerful, and it is very simple to add extensions and modify configurations.

One-click configuration of the iis site supports unlimited PHP versions running at the same time and unlimited customization of mysql\php versions.

One-click configuration of Nginx site supports unlimited PHP versions running at the same time and unlimited customization of mysql\php versions.

One-click configuration of the Apache site supports unlimited PHP versions running at the same time and unlimited customization of mysql\php versions.

PHPWAMP can run normally even if components that are missing necessary dependencies are missing. This is something that other integrated environments do not have. PHPWAMP does not need to install the troublesome VC runtime library, does not need to repair missing components of the system, and double-clicks to run regardless of dependencies. The customization function can freely customize all historical PHP versions of 32-bit and 64-bit, and automatically and intelligently match the relevant dependencies required by 32-bit systems and 64-bit systems to run perfectly. If you encounter environmental failures caused by various occupations and other abnormalities, You can also use "forced removal of environmental obstacles" to violently clear obstacles and run them with full intelligent automatic analysis. There will be no impact during the process of clearing obstacles.

If you still have questions about the PHP integrated environment, or feel that your PHP skills need to be improved, and want to advance to an architect, you can click on the card below to enter the PHP learning exchange group, where not only experts will help answer questions , you can also obtain PHP related information, including laravel, swoole, high concurrency, distributed microservices and other information, which can be obtained for free.

Recommended learning: "PHP Video Tutorial"

The above is the detailed content of Can I write directly without installing the php environment?. 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