How can a novice develop a complete website using PHP?

云罗郡主
Release: 2023-04-04 15:12:01
forward
18304 people have browsed it

1. Knowledge that PHPer should have

(1) PHP knowledge:

Proficient in basic functions, PHP statements (conditions, Loop), array (sorting, reading), function (internal structure), operation (mathematical logic), object-oriented (inherited interface encapsulates polymorphic static properties), etc.

Understand a mechanism of Cookie or Session

Understand a template operation mechanism and its use

Collecting some good common classes or methods on hand can improve the speed of our development . Such as: paging, uploading, character filtering, database operations, HTML generation, file operations, etc.

(2)HTML knowledge

(3)JavaScript event processing

(4)Database knowledge: SQL statement "add, delete, modify, query" and be able to use a SQL tool

2. General process of PHP development

How to develop a complete website with PHP

(1) Try to be as complete as possible in the demand plan, specific to the functions :

(2) Modeling structure UML

(3) Create database

1. The table name and field name created must be related to its function.

2. Establish a database table according to the structure. The principle is that the indefinite content must be divided into tables.

3. For field types, consider whether the content is sufficient. Choose the appropriate type INT Varchar Date

(4) Design the implementation of HTML files and scripts

Designing pages based on models and databases is a very scientific method. Of course, sometimes some people like to design pages based on models, and databases can be designed based on pages.

When designing the page, consider every detail, including prompt message pages and error pages.

(5) Writing PHP website source code

1. First establish the underlying structure and folders (if it is a large website, also design a file UMML)

2. Basics Function classification association for future code reference.

3. When writing code, pay attention to simplicity and the use of functions. Use internal functions as much as possible.

4. Add code comments in some key locations.

(6) Program testing and correction

1. The discovered BUG cannot be solved just by solving the BUG, ​​but must be considered in the complete program. Avoid harvesting mulberries and elm from the east.

2. The resolved bugs must be recorded in detail for future updates.

3. What should be paid attention to in multi-person development

Use version server: CVS, SVN...

Function:

1. Recording and recovery of historical versions of a single file

2. File locking and updating

3. Communication between single or multiple file programs

4. Protection The security of the program will not be lost due to misoperation of a single program.

The above is a complete introduction to how novices can develop a complete website with PHP. If you want to know more about php video tutorial, please pay attention to php Chinese website.

The above is the detailed content of How can a novice develop a complete website using PHP?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:cnblogs.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template