Learn the basics of PHP before you know it

Source: Internet
Author: User
Tags learn php

This article introduces you to learn the basics of PHP before you need to master. Many people think that PHP can learn from the zero base, that is, you can learn PHP directly without learning anything else. Indeed, PHP is easy to get started, not linked to other knowledge, can be zero basic learning, do not need to have other knowledge. But in my opinion, before you learn PHP, you have to master some basic knowledge of Web page making. Before learning PHP, personal recommendation is: HMTL-> css-> javascript-> MySQL (that is, SQL statements)-> PHP.

Html,css,javascript is mainly used to do the front page, some people will ask, since I am learning PHP, do is the background program, why to learn the foreground production. Moreover, large companies for the front desk, backstage, art and so do not have a clear division of labor, but also use me to write. Yes, but it's a big company, and for a small company it's going to be done by one person. From the page design, page layout, art, and then to the background processing are a person or several people completed, there is no clear division of labor. Must be the front desk, backstage will. In large companies, although there is a clear division of labor, the front of these things although not required you to write, but you have to read.

MySQL to master is the SQL statement, nothing more than to add, delete, this, check, and database optimization, these are relatively simple, learning is also relatively fast, but also have to grasp the knowledge.

As for ajax,jquery this knowledge, when your PHP has a certain degree of learning, you can consider this, because in many large projects have to use Ajax, especially the chat room.

Here's what you need to learn about PHP:

1, make sure you can read the PHP code with the help of the handbook.
2, to ensure that you can basically use MySQL, commonly used queries, including joint inquiries will be. MySQL installation and user rights configuration will be.
3, to ensure your proficiency in the use of table, understand the HTML data organization and display logic.
4, to ensure that you understand the CSS and can carry out div+css layout, master DIV, UL, DL, SPAN, P and other common tags. (if it is a professional, but also learn to float, positioning, lightbox, etc.).
5, make sure you can write common JavaScript code and start learning JavaScript libraries, such as jquery. Learn JS library remember not to look at the source code, first look at the manual and then learn by example, learn to call on it. (Professional receptionist to study library files).

After the 1~5 is complete, you have mastered the basics and have the ability to handle problems with a single file. This is the time to start learning business logic. What the business logic is, is through the organization of the Code to make one use of the function. The most basic is the message book. This part of the most important is to understand, site display habits, settings habits, management habits, user release habits.
6, skilled writing message book. Can skillfully through several PHP files to achieve small functions. For example, those files are used to show which files are used for administration and which files are used to publish content. And a rough understanding of the membership function. (Can download the message This program research study).
7, start contacting the big Point project. First understand the Web page process. Train the flow of thought. At this time, can install a few more open source PHP products (including domestic and foreign), such as Discuz,dedecms,drupal and so on. Do not look at the core code of these products first. Look at the configuration, installation, application and interface of the template.
8, start to understand the website business structure, including the foreground, backstage, member, data flow (user to database, database to user). Proficient in the process design, such as to add a picture upload function, need several files.
9, find a job to practice, don't be too picky at first, but be sure to find a company that lets you play, start contacting customer needs, how to organize documents, solve bugs.
10, in the work of six months to a year or so, began to summarize, according to the selection of the company and the application you have done, began to summarize the development model, template engine, database design, and so on.

(This article is transferred from http://www.asheep.cn/skill/stady-php.html)

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.