/video and legends in this section, see Baidu Cloud: http://pan.baidu.com/s/1o7bg5a6/
Wamp Standalone Installation
1 Course Introduction + Website Basics (html+ website + access process)
2PHP Introduction +web Introduction + Environment Introduction
3Apache installation + configuration modification + command use
4Apache operating principle + installation Php+apache loading PHP
5 Installing MySQL
6php Load mysql+ Virtual host
Course Schedule
7 days: basic knowledge of PHP + Server Setup
5+1 days: 5 days Introduction sql,1 Day Php+mysql programming
12 days: PHP in Depth (object oriented, project, MVC, Session technology: Session&cookie, image processing, verification code, etc.)
5 days: Intermediate item (given static site template for dynamic implementation)
Web Base Knowledge HTML
1. What is HTML?
Hypertext Markup Language: Hypertext markable Language
2. What does HTML do?
HTML is the control of the structure or style of the content through tags (tags).
HTML is designed to ensure that all users can see the same data content. Website
1. What is a website?
Customer perspective: A machine that exists on the Internet that provides HTML access to services
Development perspective: Install a Web server on a single computer, the Web server can read HTML files from a folder in the computer (the site is a folder)
2. Site-related knowledge
Server: Computer with Server software installed
Web server: Apache,iis,tomcat
Database: Mysql,oracle,sqlite,db2 ...
Client: Browser
IP: An address that uniquely identifies a computer on the Internet (a network card that is tied to a computer), can have multiple IPs on a single computer, and must ensure that the computer has multiple network cards (one IP adapter is bound)
Domain Name: Domain,dns (domain name resolution Server), a string (name) corresponding to an IP address, when the user access to the corresponding domain name, the resolution to the corresponding IP address sent to the user.
3. How is the website accessed?
Conditions: Two computers, interconnected (network cable physical connection), the browser exists on a computer, the server software on another computer
Software architecture
C/s:client Client/server Server
B/s:browser Browser/server Server PHP
1. What is PHP?
Original Php:personal homepage, personal homepage
Developing Php:preprocessor PHP, pre-processing scripting language
A scripting language that runs on the server side.
Official definition:
A server-side HTML scripting/programming language that is simple, object-oriented, interpreted, robust, secure, and highly performance-independent, architecture-friendly, portable, and dynamic scripting language. is a versatile scripting language that is widely used in open source, especially for Web development and that can embed HTML. Its syntax is close to C,java and Perl, and is easy to learn. The language allows Web developers to quickly write dynamically generated Web pages.
2. What is a scripting language?
Compiled language: A well-written program must be compiled by the compiler (get a compiled file) to get an executable file to run the executable
c,c++,java,c#
Scripting language: An interpreted language that does not need to be compiled in advance and compiled and parsed during execution.
javascript,php,asp,jsp
3. History of PHP
Rasmus Lerdorf
Development history
1994:1, personal homepage, Personal homepage, developed using Perl language
1996:2.0,c Language Bottom
1998:3.0,zend Company established, zendengine Efficient parsing PHP (PHP is process-oriented)
2000:4.0,php began to support object-oriented, increased session and output buffering, etc.
2004:5.0,zend Engine 2 Generation Web
Web is a Web site, is a Web service to provide users with the site services.
The server only recognizes the HTML language and does not recognize the dynamic scripting language.
web1.0: Static website, all the pages are made up of html+css+javascript
Static Web site: Displays only existing data and cannot interact with users
web2.0: Dynamic Web site, Web site is generated by the Dynamic scripting language HTML Web page (3P) Server environment
A server environment refers to a variety of services that work together to achieve a full range of services.
The server environment is divided into two types
Integrated environment: Some people feel that the installation and configuration of the environment is very complex, so the already configured environment (APACHE+PHP+MYSQL) packaged into an installable program, other users only need to install a file, that is, the implementation of the installation of Apache and PHP and MySQL and configuration.
Common integration environments are: Wamp,phpstudy,xapp,appserv ...
Advantages and disadvantages of the integrated environment:
Advantages: Simple and convenient installation
Cons: Insecure, feature missing (configuration item not complete)
Stand-alone environment: independent installation of three parts (Apache+php+mysql), three content needs to be configured to become an "environment", to provide external dynamic Web services.
Separate environments are divided into two types
Wamp:windows + Apache + mysql + php,windows amp, often used for development.
Lamp:linux +apache + mysql +php,linux amp, commonly used for servers.
Selection of environmental use
The development phase uses an integrated environment
Independent environment in production phase (on-line)
Programmer Independent Development: Integrated environment
Server-side operation: Isolated environment
1.1 Course schedule and website basics