Home  >  Article  >  Backend Development  >  How to install the php interpreter

How to install the php interpreter

藏色散人
藏色散人Original
2020-09-11 09:15:416629browse

How to install the php interpreter: first download the zip package in "VC11 x64 Thread Safe"; then extract it to the "C:\php" directory; finally copy the "php.ini-development" file , and rename it to "php.ini".

How to install the php interpreter

Recommended: "PHP Video Tutorial"

The first step of installing and configuring PHP under Windows

The first step is to download and install the PHP interpreter:

1. Download the Windows version of the PHP interpreter, download address: official download (https://windows.php. net/download/)

I downloaded the zip package below VC11 x64 Thread Safe

2. After the download is completed, unzip it to the C:\php directory, then open the directory and unzip the directory There is an ext subdirectory under it, which saves some extension dlls of php

There are also 2 files, one is php.ini-development and the other is php.ini-production. It can also be seen from the name that it is a development environment. The difference from the production environment

3. Copy a copy of the php.ini-development file and rename it to php.ini, then open it for editing with Notepad:

Find; extension_dir = "ext " Delete the first semicolon

Find;extension=php_mbstring.dll Delete the first semicolon

Next step is to download and install the IDE development environment and do .Net me , choose to use NetBeans:

1. Download and install Java's JDK, because NetBeans requires a jdk environment. Search JDK on Baidu and download it first. You can also go to: Official Download

2. Download and install NetBeans, download address: official download, be careful to choose which version to download PHP or ALL

3. After the NetBeans installation is completed, you need to configure the PHP interpreter path and open the menu tool = 〉Option, in the PHP routine, after the PHP5 interpreter, select the directory where the php decompressed in the first step is located, such as: c:\php\php.exe

4. You can use NetBeans to create a new project. First For each project, you can choose PHP's TodoList in "Samples".

Note: When running the TodoList project, if the web page reports an error: Call to undefined function mb_internal_encoding()

Please confirm whether you have configured it according to step 3 of the first step

The above is the detailed content of How to install the php interpreter. 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