配置文件位置
安装目录的 conf/httpd.conf 文件里
关键配置
DocumentRoot
# DocumentRoot: The directory out of which you will serve your documents. By default, all requests are taken from this directory, but symbolic links and aliases may be used to point to other locations.
例:DocumentRoot "D:/Deployment/www"
ServerName
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn‘t have a registered DNS name, enter its IP address here.
#
例:ServerName localhost
Listen
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
例:Listen 127.0.0.1:8020
LoadMoudle
#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule‘ lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l‘) do not need
# to be loaded here.
Example: module_name path
LoadModule foo_module modules/mod_foo.so
PHP执行过程
变量传值
1、值传递:变量保存的值复制一份,将复制的值传给另一变量,两个变量指向不同内存空间
2、引用传递:将变量值的保存的地址传递给另一变量,两个变量指向同一内存空间,引用传递符号 &
魔术常量
文件包含