PHP Basic & Configuration


PHP

I. Basics

1. Development Cycle

  • 确定主题 >> 搜集材料 >> 规划网站 >> 选择开发工具 >> 制作网页 >> 测试网站 >> 上传网站 >> 推广宣传 >> 维护更新

II. Configuration

1. Development Tool/Kits

  • Dreamweaver,ZendStudio,PhpStorm,Notepad 等。

2. WampServer

  • WampServer(Windows + Apache + MySQL + PHP)
  • 下载地址:www.wampserver.com/en/download.php
  • 安装步骤:Launch WampServer >> http://localhost/http://127.0.0.1/ >> 安装成功

a. Apache Server

i. 不分大小写 case insensitive
ii. 端口 Port
  • 单击 WamServer >> Apache/http.conf >> httpd.conf >> 查找关键词 listen 0.0.0.0:80 >> change 80 to other port number(e.g. 8080),保存 httpd.conf 配置文件 >> 重启 Apache,此后访问 Apache 服务时,需要在浏览器地址栏加上 Apache 服务的端口号(e.g. http://localhost:8080/
iii. 起始页面 Index page
  • httpd.conf >> directoryindex,DirectoryIndex 后面就是网站的起始页和优先级。
iv. 主目录 Master directory
  • httpd.conf >> documentroot,change ${INSTALL_DIR}/www to E:/wamp/www/php/,重启 Apache,http://localhost/test.php 就是在 E:/wamp/www/php 下的 test.php 文件。
v. php.ini
  • php.ini 是 PHP 在启东时自动读取的配置文件,在 C:\wamp\bin\php\php5.5.12register_globals: 调至 Off 可以对通过表单进行的脚本攻击提供更为安全的防范措施;short_open_tag:调至 On 表示可以使用短标记 <??> 作为 PHP 的开始和结束标记;display_errors:调至 On 表示打开错误提醒,在调试程序时使用。

b. MySQL

i. root
  • root 有最高权限,密码默认为空,phpMyAdmin 是 MySQL 图形化管理工具,是用 PHP 开发的 B/S 模式的 MySQL 客户端软件,基于 Web 的跨平台管理程序,支持简体中文。
ii. 路径
  • 单击 WampServer >> phpMyAdmin >> 用户

原文链接:https://qwert.blog.csdn.net/article/details/105657065

发布了401 篇原创文章 · 获赞 416 · 访问量 3万+

猜你喜欢

转载自blog.csdn.net/Regino/article/details/105657065