Learn PHP before you need to know the knowledge, learn PHP knowledge _php Tutorial

Source: Internet
Author: User
Tags learn php

Learn PHP knowledge before you need to learn PHP


1. static website and dynamic website

A) static website:

Web sites that do not support data interaction (suffix: . html. htm)

B) Dynamic website:

Web sites that support data interaction, dynamic websites can be put on static web pages

I. technology to implement dynamic Web sites

1.Asp. Asp

2.php. php

3.. net. aspx

4.Java. jsp

2. client and server side

A) Client: The computer that the browser uses

B) server-side: The machine that holds the website code

C) The client sends a request to the server (HTTP request), the server will be static resources (HTML, code, pictures,JS ,CSS) is sent to the client (HTTP response), and the client parses the returned code through the browser, forming the page we see.

3. ports and port numbers

A) The port is the entrance to the service operation, similar to the building door

B) Port: Number of the door. Range is 0~65535

C) How to query whether the port number is being exploited.

Enter cmd after win+r to enter command line

Input Netstat-ano

D) port is generally reserved for the WEB server, Port for FTP ,25 the port is reserved for mail servers.

4.BS and CS architectures

A) BS Architecture

B:brower Browser

S:Sever Server

Accessing the server through a browser

B) CS Architecture

C: Client Clients

S:Sever Server

Accessing the server through a client software

Example:qq, Fry software

5. Front desk and backstage

A) Front desk: browser-seen interface

B) backstage: administrator-operated interface, backstage to operate the foreground data

6. sites, virtual directories, virtual hosts

A) site: The folder where the content of the site is stored

B) Virtual directory: folder with permissions

C) Virtual Host: Folder with permissions + domain + Port

7. Change the virtual directory

Because the PHP operation requires Apache Support, so the php directory to inform Apache , Configure the virtual directory for php in the Apache configuration file

Open Apache configuration file, search documentroot(configuration file is case-insensitive)

Enter http://localhost/text.php ( the modified virtual directory )in the browser address bar. Reasons why the specified page could not be opened: Access is not set to the directory that was changed

Workaround: In the Apache configuration file, set the permissions for the specified folder to

Change method:

1. Locate the http.conf under wampwerver\bin\apache\apache2.4.9\conf\ , and when open, enter vhosts Search, find where you are, and get rid of the previous #

2. Locate Wampserver/bin/apache/apache2.4.9/conf/extra below httpd-vhosts.conf, open and add the following code at the end of the text

DocumentRoot "d:/wamp/www/web1/"

DirectoryIndex wo.php

ServerName www.sina.com

3. Modify the C:/windows/system32/drivers/etc/host file, open it with Notepad, and add the following:

127.0.0.1 www.sina.com

Note: d:/wamp/www/web1/is the root of a Web site project

7. Change the home page

Look for DirectoryIndex in the Apache configuration file , which is the home page of the setup site.

9. change the Listening port

Listen

Browser request Format:/HTTP url [: port number ]/php page

If it is the port number, then the port number can be omitted.

10.DNS parsing

A) DNS: Domain name resolution system. Browser input domain name, first to the nearest DNS server to resolve the IP address of the domain name (the nearest DNS Resolution server is the local), and then through IP Address to access the server.

The DNS Resolution database for this machine is in "C:\Windows\System32\drivers\etc\hosts"

features of 11.PHP grammar

PHP keywords are case-insensitive, variable names are case-sensitive

http://www.bkjia.com/PHPjc/1071505.html www.bkjia.com true http://www.bkjia.com/PHPjc/1071505.html techarticle Learn PHP before you need to know the knowledge, learning PHP knowledge 1. Static Web site with dynamic site A) static Web site: Web sites that do not support data interaction (suffix:. html.htm) B) dynamic website: ...

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.