Learning Circuits and Suggestions for PHP Beginners

原创 runoob  2019-05-14 14:10:52  阅读 162 次 评论 0 条

Let's first look at the learning circuit for PHP beginners:

(1) Familiar with HTML/CSS/JS and other basic elements of web pages. At the completion stage, you can make simple web pages by yourself, and you are relatively familiar with element attributes.

(2) Understand the concept and operation mechanism of dynamic language and be familiar with basic PHP grammar.

(3) Learn how to combine PHP with HTML to complete simple dynamic pages.

(4) Contact learning MySQL and start designing database.

(5) Constantly consolidate PHP grammar, familiarize with most commonly used PHP functions, understand object-oriented programming, MySQL optimization, and some templates and frameworks.

(6) Final completion of a fully functional dynamic site.

Novice don't look at the above summary and think that PHP learning is very simple. Programming requires your serious thinking and continuous practice. The following is a detailed explanation of the learning circuit of PHP. First of all, any website is made up of web pages, that is to say, if you want to complete a website, you must first learn how to make web pages, master the production technology of static web pages is a prerequisite for learning to develop websites. Therefore, we need to learn HTML to lay the foundation for future website production. Learning HTML should be done while learning. Every element in HTML should be practiced in person. Only when you understand what elements will play what effect, can you remember deeply. Reading books blindly is not feasible.

Assuming that you can complete a static page, then it's time to start to understand dynamic language. When you first come into contact with dynamic language, many people may have a lot of confusion. Code is not output directly, but processed. HTML is processed by HTML parser, while PHP also needs to use PHP parser, just like learning HTML, to want any parser to work. It must use its special grammatical structure.

You should be lucky to learn PHP, because if you have studied other languages, you will find that PHP is relatively simple. At this stage, you need to understand the concepts of HTML and PHP. Now you can let PHP calculate one plus one for you, and then output in the browser. Don't be naive. It's a small piece of code, but it's a big step on your way to programming. But now, you are still a rookie.

Next we need to learn about databases. MySQL can be said to be the golden partner of PHP. We need to conquer this database. After you understand the concept of database, you should try to connect the database through PHP, and then use PHP to insert, delete and update data successfully.

At this point, you may be in this state: Do you know HTML? Yes, I can compile several tabular pages. Do you know PHP? Yes, I'll write a one-and-one operation in the function and call it! Do you know MySQL? Yes, I can insert and delete the data in the database!

So what should we do next? Try to make a small message book, which is also a barrier for beginners. It took you a while to finally learn to insert the data from the form into the database and display it. It should be said that the prototype of a program has been born. However, you may look at the editorial forum of others. When can I write a CMS? Don't worry, consolidate your knowledge, get familiar with the main points of PHP and MySQL development, and then look back at the message book you wrote, you may wonder if it was really you who wrote it? At this time, you can improve your message book. Messages should have been added to the registration and pagination functions, if possible, UI can also be strengthened.

Is that learned? NO, NO, NO. It's still early. You haven't touched OOP yet, have you? What about templates and frameworks? We still have to continue our study! ____________ The PHP framework provides a basic framework for building web applications, which simplifies the process of writing web applications with PHP. It can save development time and help to build more stable applications. So the PHP framework is a tool that can be used to save time and enhance your own code. When you first choose PHP frameworks, it is recommended to try several more. Each framework has its own strengths and weaknesses. For example, the Zend framework has been popular for a long time because of its diverse functions and a wide range of support systems. CakePHP is a PHP framework later than Zend, and there are fewer supporting systems, but it is more convenient and easy to use.

After learning about object-oriented and frameworks, you should get in touch with XML. In a word, you will never find that you have learnt everything. There is no end to learning! Never dream of quick success when you learn something. No matter how many skills you have, but lack of effort, it's a waste of time. One thing you can guarantee is that if you learn PHP, you will learn other languages quickly, and vice versa. If you have learned other languages before, you will learn PHP quickly.

It is absolutely harmless to learn from other people's successful codes, so it is the best way to make progress to see more of those classical codes that have been condensed through thousands of exercises. In addition, it should be emphasized that learning a technology may encounter difficulties, may be confused, you may have learned half of the PHP, and began to hit the C # idea, or some people say that Java is good, at this time you must not waver, to adhere to the end, thoroughly learn. I wish you success in learning PHP and developing the website you want.


本文地址:https://www.myexplor.me/webuilding/157learnphp.html
版权声明:本文为原创文章,版权归 LittleRob 所有,欢迎分享本文,转载请保留出处!

发表评论

还没有留言,还不快点抢沙发?