I don’t need to go into details about the background of PHP. I believe that when everyone chooses a language, it is not based on its background and long history, but more importantly on its practicality. Even a flashy language is The glorious history will eventually decline. Fortunately, PHP has withstood the test, and therefore, it is indeed a language worth learning.
General process of learning PHP:
My route may coincide with that of many enthusiasts who are learning PHP. This can be regarded as a step-by-step learning process. However, novices should not think that learning is quite simple after seeing the summary above. I have to admit it silently. If you pour some cold water on it, nothing is actually simple. Even the sesame seeds in the snack bar are not made at once.
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 lay the foundation for making websites in the future. Base.
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.
Every element in HTML must be practiced personally. Only after you understand what elements will have what effect, you will remember them deeply. Blindly reading books will definitely not work. I think the reason why most novices feel that Concepts are difficult to learn, mostly because of the word "lazy". Laziness is the biggest enemy that prevents progress. Therefore, only by overcoming the habit of laziness can you learn something faster.
Perhaps when you are learning PHP, you just want to develop a website as quickly as possible, and you will also think about me making a website. Why do you need to learn such trivial things as web pages? It is not difficult to see that there are many novices who have high ambitions but low ambitions. This kind of thinking undoubtedly affects To build a castle in the air, if you don’t build a foundation, where will the roof be?
OK, mastering the technology of making static web pages is a prerequisite for learning to develop websites. This point will stop here. Because this article is not a tutorial article, it will not provide an in-depth analysis of the technology.
Then 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 the case. Even if it’s messy, 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 of course PHP Through the PHP parser, it is the same as 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 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 feel that PHP is indeed quite good. Simple, but if you have never learned anything before, then bite the bullet and think about it.
You will become familiar with it after reading it three times. This simple truth tells us that even if you can’t understand PHP, you must first become familiar with it. Read it over and over again. While reading, you will ponder and follow it. When it comes to coding, even if you don't know what the codes are for, at least you should get a feel for it.
After a period of struggle, you, the smart one, have obviously gradually become enlightened and slowly understood the concept of programming. Congratulations, you have taken the first step to success.
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 feel naive. This is indeed the same as the Apollo moon landing. You are typing a small piece of code, but it is 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 have to continue working 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 this row and column The stuff just makes 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. Take heart Get 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 it, but the fact Prove that you can do it.
Having learned PHP and database, you are undoubtedly holding a MOTOLOLA in your left hand and a NOKIA in your right hand. How chic and chic, haha, I finally learned it, but maybe at this time, someone will inadvertently tap me on the shoulder. You said: Brother, don’t be too happy, you are still a rookie, you are still a long way from learning!
When you work hard and learn to successfully insert, delete, and update data using PHP, it is obvious that you are just around the corner from success.
You may be in this state at this time:
Do you know HTML? Yes, I can edit several web pages with large tables and layouts!
Do you know 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 that 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.
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, and neither did I Book holder, so far away, I haven’t even seen his brother’s face)
After you have consolidated your knowledge and become familiar with the essentials of PHP and MYSQL development, then look back at the guestbook you wrote. You may wonder if it was really written by you? Of course, if there are ghosts in the room, If so, maybe it was written.
At this time, your message book should have registration and paging functions. If you are stronger, the UI (user interface) can also be enhanced. After completion, do you feel a sense of accomplishment? No matter what, let’s do it anyway I have written a dynamic website program. Let's put it on my own website and let my good friends take a look. Hey, let's see how great my writing is, and then promote it online.
A few days later you open the guestbook again, eh? Wow, N number of pages pop up at once! Obviously, your guestbook did not take security precautions, someone used JS code to play a little trick, I am very happy I sympathize with your feelings at this time, but there is no other way, keep working hard!
You worked hard, became familiar with security issues, and then designed some programs, which feels good.
So next, do you think you have learned it? 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 learning these, you have learned to generate static web pages. Now you should get in touch with XML. Well, you also understand XML, so you also have to get in touch with AJAX, right? AJAX It’s over....and then...
In short, you will never 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. It turns out that learning is useless. The end!
I think through my YY, you should also be familiar with some of the learning process. Maybe my process has some solutions to yours, but no matter what, it is the same goal. I write so much just to give everyone a reference. As for the opportunity, whether it is good or not, I dare not guarantee it
Never expect a quick fix when learning something. It tells you a way, but if it lacks the hard work, it will be in vain.
But one thing I can guarantee you is that if you learn PHP, you will definitely learn other languages quickly. The same is true in reverse. 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 differences. 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 giving up midway. Believe in yourself, your choice, and more importantly, your own will. Ability, 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?
Another thing to remind everyone is to resist the temptation. The comparison of ASP/PHP/JSP/.NET may make you confused. You may have learned half of PHP and started to think about C#, or some people say that JAVA is very strong. You must not waver 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 being a loser and 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 that you will be looked down upon by others. , no one likes to make friends with people who have different ideas, because such people are too restless and unreliable. Therefore, you must force yourself to achieve your goals, even if it may be uncomfortable, you must persevere. This is how perseverance is exercised. came out.
Finally, I would also like to say that there are many Chinese people who are not confident and have said that their language changes when it comes to China, and that Chinese people are not united and have no team spirit. On the contrary, I feel that these people are short-sighted and pathetic. It is a pity that those people always shirk all responsibilities, but do not start from themselves and set an example to change this situation. Instead, they sigh pessimistically and only hope that those people will wake up soon. Only if everyone works hard Only by doing so can we make progress, but by feeling inferior to ourselves will only make things worse.
In fact, whether it is PHP or anything else, if we don’t learn it, we will do it. If we learn, we must make a name for ourselves. The power of one person may be insignificant, but everyone works hard and works together. What can’t the Chinese do? We must not only catch up, but also surpass, and make the world use "Chinese standards." Maybe when I say this, some people say that I am wishful thinking, and some people say that I can only shout slogans. It doesn't matter, but the important thing is that I finally put it into practice. The words in my heart spoke out. To put it bluntly, we Chinese do not lack strength, but we lack ambition. Ambition is not a derogatory meaning. The ambition referred to here refers to the Chinese people's ambition to dare to be the first in the world. Php has been widely used in China, such as the widely used Discuz forum.