Home  >  Article  >  Backend Development  >  Share PHP learning skills with you_PHP tutorial

Share PHP learning skills with you_PHP tutorial

WBOY
WBOYOriginal
2016-07-15 13:34:05800browse

We know that when learning

I will first summarize my own process of learning PHP:

(1) Familiar with HTML/CSS/ Basic elements of web pages such as JS can be used to create complete web pages by themselves at the completion stage, and be familiar with element attributes
(2) Understand the concept and operation mechanism of dynamic languages, and be familiar with PHP syntax
(3) Learn how to use PHP Combine with HTML to complete a simple dynamic page
(4) Get in touch with MYSQL and start designing database programs
(5) Continue to consolidate, understand most of the common PHP functions, and understand OOP, MYSQL optimization, and templates
(6) Complete a fully functional dynamic website

This set of PHP learning skills may coincide with many enthusiasts who learn PHP. This is also a step-by-step learning process, but novices should not read it. From the above summary, I think learning is quite simple. In fact, nothing is simple. Even the sesame cakes in the snack bar cannot be made at once.
Let me first explain my learning ideas.

First of all, after understanding the concept of website, it is not difficult to see that any website is composed of web pages. In other words, if you want to complete a website, you must first learn to make web pages. Therefore, you must master HTML in order to prepare for the future. Lay the foundation for making a website.

I think learning while doing is the most effective way to learn HTML. Of course, this method is also the most effective way to learn PHP skills.
Any element in HTML must be practiced personally. Only after you understand what element will have what effect, you will remember it deeply. Blindly reading books will definitely not work.

Mastering the production technology of static web pages is a prerequisite for learning to develop websites.

I assume you can now complete a static page. So let’s start learning the concept of dynamic language. Many people may be confused when they first come into contact with dynamic language. Why is this messy thing different when it is displayed on the web page? In fact, this is not a mess. Isn’t the HTML code you write also just a bunch of characters?

After all, the code is not output directly, but processed. To put it bluntly, HTML goes through an HTML parser, and PHP Of course, it is through the PHP parser. Just like learning HTML, if you want any parser to complete the operation, you must use their dedicated syntax structure, so it is not surprising that PHP looks strange.

Understanding PHP learning skills is the most difficult threshold for novices to cross, but you should feel lucky that PHP has tried its best to cater to novices. If you have learned other languages, you may be able to I think PHP is indeed quite simple. Even if you don't understand PHP, you still have to get familiar with it first.

Understand the concepts of HTML and PHP, then mixed programming of PHP and HTML should not be a problem. During this period, you can let PHP calculate for you how much one plus one equals, and then output it in the browser. Don’t I feel naive. This is indeed the same as the Apollo moon landing. You typed a small piece of code, but it was a big step forward in your programming journey! Are you excited? But I have to pour some cold water on you. , you are still a newbie.

After being happy for a while, you must continue to work hard. The next step is to learn databases. MYSQL can be regarded as the golden partner of PHP. However, even though that is said, you may also want to eat MYSQL alive, because The rows and rows of stuff made me dizzy.

Dizziness is dizziness, dizziness is dizziness. You can’t bite your tongue while eating and then stop eating, right? Put down your fear and keep working hard. We are here to conquer it, not to be conquered by it. Yes, cheer up comrade.

After a lot of struggle, you finally understand the concept of database, and what makes you excited is that you can finally connect to the database through PHP. How you learned it during this period, we will not verify. , but it turns out, you already can.

Having learned PHP and database, you are undoubtedly holding a MOTOLOLA in your left hand and a NOKIA in your right hand. Be more chic and chic, haha, I finally learned it, but maybe at this time, someone will inadvertently take a picture. I pat you on the shoulder and say: Brother, don’t be too happy. You are still a rookie, and you are still a long way from learning! When you work hard and learn to successfully insert, delete, and update data using PHP, obviously, You are already close to success.

You may be in this state at this time:

Do you know HTML? Yes, I can compile several web pages with large tables and layouts!

You can PHP? Yes, I will write the operation of one plus one in the function and then call it!

Do you know MYSQL? Yes, I will insert and delete my information in the database

Then, what should you do next? I think if you try your skills for a while, it will probably be fine. Then I will give you a task and make a guestbook. This is comparable to HELLO WORLD! ^_ ^, is also the first hurdle faced by novices.

It took a while, but you finally learned to insert the form data into the database and then displayed it. It should be said that the prototype of a program has been born. However, you may look at this forum, that CMS, and what kind of CRM. When will I write one?

Don’t worry, it can be said that your horse stance is almost done, and it’s time to start practicing the postures. If possible, use a pen or print a simple PHP manual on your body, and touch it from time to time Come out and take a look, remember, don’t miss it even if you go to WC (^2^).

If you have the conditions, buy this book and read it. "PHP+MYSQL WEB Development (Third Edition)" is known as the Bible, (maybe a good choice) (Disclaimer: The author did not give me any benefits, I’m not a book supporter either. I’m so far away and I haven’t even met his brother before saying this -_-)

After consolidating my knowledge and becoming familiar with the essentials of PHP and MYSQL development, Looking back at the guestbook you wrote, you may wonder if it was really written by you? Of course, if there is a ghost in the house, maybe it was written by it -_-

At this time, Your guest book should have registration and paging functions, and if you are stronger, the UI (user interface) can also be enhanced. After completion, do you feel a sense of accomplishment? Anyway, we have written a dynamic website. Program it, put it on your own website, let your friends take a look, hey, look at how great our writing is, and then promote it online

After a few days, open the guestbook. , Huh? Wow, N number of pages popped up at once! Obviously, your guestbook did not take good security precautions. Someone used JS code to play a little trick. I sympathize with your feelings at this time, but there is nothing else. You’ve figured it out, keep working hard!

You worked hard, got familiar with security issues, and then designed some programs, and it feels pretty good.

Then what happens next? NO, NO, NO, it's still early. You haven't touched OOP or anything like that yet, right? Where are the templates?

Well, learn! Keep learning and learning. After you learn these, you learn again. Generate static web pages. Now you should be exposed to XML. Well, you also understand XML, so you also need to be exposed to AJAX, right? AJAX is over.... Then...

In short, you will never know how I find that you have learned everything. Some real strong people will always come up with new things to throw at you. If you don’t learn, you will fall behind. This also confirms the experience of the predecessors. There is really no end to learning!

I think that through my YY, you should also be familiar with some learning processes. Maybe my process has some solutions to yours, but no matter what, they lead to the same goal. I write so much just to give everyone a chance to learn from it. As for whether it is good or bad, I dare not guarantee it in silence^0^

After reading it, you find that it is so wordy and of no use to me. I know how to learn, but I want to be more knowledgeable. Learn quickly, get it quick in a week, ah no, get it quick in 24 hours, Momo, do you have it?

I...I don't, but I will put you in the hospital within 2 minutes. I'm quite sure -_-

Never expect a quick fix when learning something. I've told you a PHP learning skill, but without hard work, it's useless.

But one thing I can guarantee you is that if you learn PHP, you will definitely learn other languages ​​​​quickly, and conversely, if you have learned other languages ​​​​before, then you will definitely learn PHP quickly.

But grammar is easy to learn, but how to use grammar to achieve everyone has their own way, almost everyone has their own merits. However, it is definitely beneficial to learn from other people's successful codes. Therefore, looking at those classic codes that have been refined over time is the best way to advance.

After talking so much, I just want to say: Learning PHP requires not only mastering the method, but also sweating. I don’t want to see people who give up midway. Believe in yourself and your choice, and more importantly, Believe in your own abilities. If you want to give up and be more violent, just slap yourself in the mouth and yell: Others can do it, why can’t I? (Doesn’t it sound like Coach Yama? Momo is indeed watching too many movies. , it will hurt if you slap your mouth, you just need to understand this truth)

Also, I would like to remind you, resist the temptation, the comparison of ASP/PHP/JSP/.NET may make you at a loss. Maybe you have learned half of PHP and started to think about C# again, or someone said that JAVA is very strong. You must not be swayed at this time. Even if you really want to learn, you have to learn PHP.

Then learn again. The most undesirable thing is to change your mind when you think differently. This is the principle of a dog breaking the corn. If you often give up midway, you will gain nothing and waste a lot of time and experience. The gain outweighs the loss. The most important thing is , you will be looked down upon by others, and no one likes to make friends with people who have different ideas, because such people are too restless and unreliable. In fact, the PHP learning skill is that you must force yourself to achieve your goals, even if it may be very difficult. Even if you feel uncomfortable, you still have to persevere. This is how perseverance is developed.


www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/446014.htmlTechArticleWe know that before learning, I will first summarize my own process of learning PHP: (1) Familiar with HTML/ CSS/JS and other basic elements of web pages, you can create a complete web page by yourself during the completion stage, and the element attributes...
Statement:
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