2022PHP学习教程PHP学习教程一:PHP开发环境配置:1)、Apache服务器搭建:a、next->localhost、localhost、管理员邮箱、forallUsers
b、测试安装是否胜利:localhost/或127
1/c、配置:打开httpd
conf第1页共9页找到DocumentRoot"C:/programfile/Apache/Apache2/htdocs"这是Apache的默认Web文档文件夹,将其设置为E:/httproot
找到将其改成E:/httproot
Apacheserverrestart、localhost/,进行测试
找到DirectoryIndexindex
htmlindex
var在后面加入index
htmindex
php第2页共9页
保存httpd
conf文件,Apacheserver配置完成
2)、PHP安装:a、解压到硬盘上的一个文件夹内如C:PHP,找到php
ini-recommended文件改其名为php
b、打开php
ini,找到extension_dir="
/"改为extension_dir="E:/PHP/ext"
c、找到;extension=PHP_gd2
dll第3页共9页;extension=PHP_mbstring
dll;extension=PHP_Mysql
dll;extension=PHP_mysqli
dll这4行,把前面的;去掉,让这3行生效,让PHP支撑MySQL和GD库等组件
将libmysql
dll文件复制到C:windows下面d、在E:/PHP/创建文件夹session_tmp,找到session
save_path的'这一行,设成session
save_path="E:/PHP/session_tmp"
这句话第4页共9页是让产生