Some guidance and suggestions for beginners in PHP learning, beginners come to my bowl!

Source: Internet
Author: User
Tags learn php php and mysql php framework zend zend framework

Novice small white want to learn the system of PHP development, first need to understand what needs to learn, and then set yourself a learning route, and then to this line struggle!

About the Learning route: (1) familiar with the basic elements such as HTML/CSS/JS, the completion stage can be self-made simple web pages, the element attributes are relatively familiar. (2) Understand the concept of dynamic language and operation mechanism, familiar with basic PHP syntax. (3) Learn how to combine PHP with HTML to complete a simple dynamic page. (4) Contact learning MySQL and start designing the database. (5) Constantly consolidate PHP syntax, familiar with most common PHP functions, understand object-oriented programming, MySQL optimization, as well as some templates and frameworks. (6) Finally complete a full-featured dynamic site.

The learning route is clear, then give you some advice to help you learn PHP better.

Beginners do not see the above summary that PHP learning is very simple, programming is to need your serious thinking and continuous practice. Here is a detailed explanation of the PHP learning line. First of all, any site is composed of Web pages, that is, to complete a site, you must first learn to do Web pages, master static Web production technology is the prerequisite for learning to develop a website. So we have to learn HTML, for the future production site lay the foundation. Learning HTML should be learned while doing, any element of HTML to practice, only to understand what elements will play an effect, in order to deep memory, blindly reading is not.

Assuming you can already complete a static page, then you should start to understand the dynamic language, just a contact with dynamic language, many people may have a lot of confusion, the code is not as direct output, but to be processed, HTML is through the HTML parser, and PHP also through the PHP parser, Like learning HTML, for any parser to work, it must use its own syntax structure.

Learning PHP, you should feel lucky, because if you learn other languages, you will find that PHP is relatively simple, at this stage, you have to understand the concept of HTML and PHP, you can now fully let PHP to you calculate one plus one equals a few, and then in the browser output. Don't be naïve, it's a small piece of code, but it's a big step toward your programming path. But now, you're still a rookie.

The next is to learn the database, MySQL can be said to be PHP's gold partner, we want to conquer this database, after you understand the concept of the database, you have to try to connect the database through PHP, and then use PHP successfully inserted, delete and update data.

At this point, you may be in this state: Will you be HTML? Yes, I can make up a few forms of the Web page. Will you be able to get PHP? Yes, I'll write one plus one in the function, and then call! Will you mysql? Yes, I can insert data from the database and delete it!

So what's the next thing to do? Try to make a little message book, which is also a level that novice faces. It took a while, you finally learned to insert the form data into the database, and then show it, it should be said that a program of the prototype has been born. However, you may look at the forum, the development of the CMS, when I can write one? Do not worry, and then consolidate the knowledge, familiar with the essentials of PHP and MySQL development, and then look back at the message you wrote, you may doubt that it is really you write it? You can perfect the message book you wrote. The message should be added to the registration and paging function, if possible, the UI can also be enhanced.

Is that even learning? No,no,no, it's early, haven't you touched oop yet? What about templates and frameworks? The PHP Framework provides a basic framework for building Web applications, simplifying the process of writing Web applications in PHP. Can save development time and help build more stable applications. So, the PHP framework is a tool that you can use to save time and strengthen your code. When you first choose the PHP framework, it is recommended to try a few more, each framework has its own strengths and weaknesses, such as the Zend Framework due to various functions, and has a broad support system, popular for a long time. CakePHP is a PHP framework later than Zend, and the corresponding support system is less, but more convenient and easy to use.

After understanding the object-oriented and framework, you should touch the XML, in a word, you will never find that you have all learned, learning! Learn something, never dream of a crash this said, more skills, but lack of effort, it is useless. One thing you can guarantee is that you learn PHP, then learn other languages, definitely crash, and vice versa, if you have learned other languages before, then PHP must be fast.

It is absolutely beneficial to learn more about the code of others ' success, so it is the best way to look at the classic code that has been thoroughly tempered. In addition, to emphasize that, learning a technology may encounter difficulties, may be confused, you may have learned half of PHP, and began to play C # idea, or some people say that Java is very good, this time you must not waver, to persist in the end, thoroughly learned. I wish you success in PHP, develop your desired website.

Some guidance and suggestions for beginners in PHP learning, beginners come to my bowl!

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.