search
HomeBackend DevelopmentPHP ProblemHow to install the php interpreter

How to install the php interpreter

Sep 11, 2020 am 09:15 AM
php interpreter

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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool