Home Backend Development PHP Tutorial Basic PHP Learning (Part 3)

Basic PHP Learning (Part 3)

Aug 08, 2016 am 09:30 AM
Getting started with php

Chapter 3 Configuration of WAMPServer Integrated Environment


3.1 Customize the website root directory

                                                                                                                                  www directory option) as shown in the figure below, but in actual situations we often hope that the project files will not be placed in WAMPServe, so as to achieve separation and facilitate management.


The selection steps are as follows:

(1) Create a new folder E:phpdemodemo (will be used later), used to put project files, as shown in the picture


(2) WAMPServe Left-click on the icon and select apached's httpd.conf, as shown in the picture


(3) Click to open the httpd.conf file, Ctrl+f to search documentroot and directory, and modify the path to E:phpdemodemo (the file you just created folder), save, restart the service (you need to restart after modifying the configuration file to take effect)


(4) View, enter the URL http://localhost/demo.php to view, if success is displayed, it is correct. (Note: The wamp root directory has not been modified at this time)


Here is an advertisement for the two projects I am responsible for developing. The access addresses are http://www.hth.tv/ and http:/ /www.dreamerkr.com.cn.

(5) Enter the wamp root directory and find the following 2 files


(6) Open the file wampmanager.ini and modify the circled part to E:phpdemodemo, as shown in the figure below


(7) Open wampmanager.tpl, modify the circled part to E:phpdemodemo, as shown in the picture


(8) Restart the service, the modification is successful (click the underlined content to jump to the E:phpdemodemo directory)


The above introduces the basic learning of PHP (Part 3). For more related content, please pay attention to the PHP Chinese website (www.php.cn)!



Statement of this Website
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)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Getting Started with PHP: File Uploading and Downloading Getting Started with PHP: File Uploading and Downloading May 22, 2023 am 10:51 AM

In web development, file uploading and downloading is a very common requirement. Whether users upload avatars or documents, or administrators ask users to download a file, this function is needed. As a powerful server-side language, PHP naturally provides powerful file operation functions and class libraries, allowing us to easily implement file upload and download functions. This article will introduce the basic process and common functions to implement file upload and download in PHP, and provide sample code. If you are a PHP beginner or are learning file operations

Beginner's Guide to PHP: TCP/IP Programming Beginner's Guide to PHP: TCP/IP Programming May 20, 2023 pm 09:31 PM

As a popular server-side scripting language, PHP can be used not only for the development of Web applications, but also for TCP/IP programming and network programming. In this article, we will introduce you to the basics of TCP/IP programming and how to use PHP for TCP/IP programming. 1. Basic knowledge of TCP/IP programming TCP/IP protocol is the standard protocol for communication on the Internet. It is composed of two parts: TCP protocol and IP protocol. The TCP protocol is responsible for establishing reliable connections

Getting Started with PHP: Basic PHP Syntax Getting Started with PHP: Basic PHP Syntax May 20, 2023 am 08:39 AM

PHP is a server-side scripting language that is used to develop dynamic websites, web applications, and web programs. PHP has a wide range of applications, and both beginners and experienced developers can benefit from it. This article will provide you with an introductory guide to the basic syntax of PHP. If you want to learn PHP programming and build a solid foundation from scratch, you've come to the right place. The basic structure of PHP. A PHP program contains the following three parts: <?php//PHP code?>& on both sides of the code

A Beginner's Guide to PHP A Beginner's Guide to PHP May 25, 2023 am 08:03 AM

PHP is a popular front-end programming language. It is powerful, easy to learn and use, and is widely used in website development and maintenance. For beginners, getting started with PHP requires a certain amount of learning and mastering. Here are some guides for beginners in PHP. 1. Learn basic concepts Before learning PHP, you need to understand some basic concepts. PHP is a scripting language that issues instructions to web servers. Simply put, you can use PHP to generate HTML code and send it to the browser to eventually render on the web page

Getting Started with PHP: JSON Extension Getting Started with PHP: JSON Extension May 20, 2023 am 08:37 AM

PHP is a widely used programming language, especially in web development, PHP occupies an important position. Among them, JSON is a common data format that can be used to store and transmit data. JSON extensions are provided in PHP to facilitate developers to operate and process JSON data. This article will introduce the basic usage and application scenarios of JSON extension. 1. Basic usage of JSON extension. Convert JSON string into PHP object or array. The json_decode() function in PHP can convert

Getting Started with PHP: Some Common HTTP Status Codes Getting Started with PHP: Some Common HTTP Status Codes May 21, 2023 am 08:15 AM

For PHP beginners, it is very important to understand HTTP status codes. HTTP status code refers to the 3-digit code returned by the web server and is used to indicate the processing result of the client request. This article will introduce some common HTTP status codes and their meanings to help PHP beginners better understand the various HTTP status codes encountered during website development. 200OK200OK is one of the most common HTTP status codes, indicating that the request was successfully processed and a result was returned. When you visit a website, such as

Getting Started with PHP: Code Version Management Getting Started with PHP: Code Version Management May 24, 2023 am 08:13 AM

In software development, version management is an extremely important link. Because writing code in a team inevitably requires merging everyone's code. Version management tools can help us track code changes and avoid conflicts when merging. Among them, Git is currently the most popular version management tool, a must-have for both personal development and team collaboration. This article will focus on Git to introduce you to the benefits of using version management tools, the basic concepts and basic operations of Git, and explain how to use Git to collaborate with your team for development. Why do we need versions

Getting Started with PHP: Cache Settings Getting Started with PHP: Cache Settings May 20, 2023 am 08:10 AM

PHP is a very popular programming language that is often used in the field of Internet development. In PHP development, cache settings are a very important part. Caching can improve website performance and user experience, reduce server load, and is one of the common methods for website optimization. This article will introduce you to the introductory guide to setting up PHP cache. 1. What is cache? Caching is to store some frequently accessed data in memory so that it can be quickly obtained the next time it is accessed, avoiding repeated calculations or database queries and improving response speed. PHP, slow

See all articles