Knowledge that a PHPer should have
(1) PHP knowledge:(Recommended learning:PHP video Tutorial)
Proficient in basic functions, PHP statements (conditions, loops), arrays (sorting, reading), functions (internal structures), operations (mathematical logic), object-oriented (inherited interface encapsulation) Polymorphic static properties), etc.
Understand a mechanism of Cookie or Session
Understand a template operation mechanism and use
Collecting some good common classes or methods on hand can improve our Speed of development. Such as: paging, uploading, character filtering, database operations, HTML generation, file operations, etc.
(2) HTML knowledge
(3) JavaScript event processing
(4) Database knowledge: The SQL statement "add, delete, modify, query" will use a SQL tool
General process of PHP development
How to develop a complete website with PHP
(1) Try to be as complete a requirement solution as possible, specific to the function:
(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. Basic 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.
The above is the detailed content of How to completely develop a website using PHP?. For more information, please follow other related articles on the PHP Chinese website!