search
Homephp教程php手册怎么在Windows系统中搭建php环境

怎么在Windows系统中搭建php环境

Jun 13, 2016 pm 12:47 PM
javaperlphpwindowsintroduceexisthowbuilduniqueenvironmentofsystemgrammar

PHP介绍:
PHP 独特的语法混合了C、Java、Perl以及PHP自创的语法。它可以比CGI或者Perl更快速地执行动态网页。用PHP做出的动态页面与其他的编程语言相比,PHP是将程序嵌入到HTML文档中去执行,执行效率比完全生成HTML标记的CGI要高许多;PHP还可以执行编译后代码,编译可以达到加密和优化代码运行,使代码运行更快。

PHP环境的搭建:
php环境的搭建可以采用使用集成软件(即集成了php、apache、mysql)搭建的方式,也可以自己分别下载:php、apache、mysql进行搭建。

因为很多php初学者在环境搭建这一环节就费了很大的功夫,导致失去了学习php的兴趣,所以小编推荐初学者使用集成软件搭建环境,随着学习的不断深入,再回过头来了解环境。也就是说,让大家先把环境搭建起来,学习php的基本知识,培养对php的兴趣,然后在回过头来去研究本地环境的是怎么回事。

搭建php环境的软件,主要有两种:
一、
wamp适合学习研究php时环境的搭建
二、appserv适合服务器上环境的搭建

大家平时学习php还是推荐使用wamp。
安装wamp很简单,推荐使用默认配置进行安装。
安装好以后,在浏览器输入localhost,然后回车,如果出现wamp的首页,则证明安装成功,环境配置成功。


安装好以后,默认会在C盘根目录生成一个wamp文件夹(如果安装在其他盘也是类似),在wamp文件夹中,有一个www目录。

我们先要打开wamp程序,是本地环境开启。
我们在www目录下,新建一个test.php文件,

然后输入:

在浏览器输入localhost/test.php

输出
hello world

也就是说,localhost就对应着www目录,在浏览器通过输入文件的地址,进行访问。

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

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use