Let's talk about how new users learn PHP. There are so many contact methods listed at the beginning of the article that it will inevitably make everyone feel a bit AD-like, but it cannot be questioned that there is indeed a Ding point in silence ^ _ ^, although many contact methods are listed at the beginning of an article, it will inevitably make everyone feel a little AD, but it cannot be questioned that there is indeed a Ding point in silence ^ _ ^, although sometimes too detailed will be said to the mother-in-law, but fortunately this kind of meticulous for programming, it is quite helpful!
I started to ask others how to learn PHP, and many people asked me how to learn PHP silently, whether it's a beginner or an old bird, it seems that I can't find a clear context. However, since I learned PHP silently, I have taken this path more or less for authentication.
I am afraid you will not have to go into details about the background of PHP. I believe that choosing a language is not based on its background and long history. More importantly, it depends on its practicality, the flashy language, even if it is a brilliant history, will also fall. Fortunately, PHP has stood the test. Therefore, it is indeed a language worth learning.
I grew up quietly following others' experiences, and therefore, in the experience of my predecessors, I had fewer detours and stepped into the formal stage faster, here, I would like to say thank you to the elders who did not know their names. in the silent eyes, there is no small help. as long as it is a help, it will always warm up in the silence. I think, the elders helped me not to get my thanks, but also out of a sense of responsibility and expectations for silence, so I thought, only to learn PHP well, to be able to withstand the sweat of our predecessors.
As I said, I have finally felt a sense of responsibility. I do not know how much my experience can help new users, but I understand that it is time to fulfill my responsibilities, it is necessary for me to tell my experience to all people who want to learn PHP well. Only in this way can we make continuous progress and development of PHP in China and have a place in the world.
During this period, I felt that the domestic PHP environment was becoming more and more mature and the specifications were gradually improved. PHPCHINA was founded, it marks the official establishment of a PHP institution directly linked to the official website in China, and a late round of applause!
Okay. let's get started with the question:
Before talking about my learning methods, I want to say something to those who want to get useful information from my articles:
Silent articles will not play a substantial role in your learning. if you can succeed, you have to rely on your own, persistence, persistence, and then persistence, that is, to step into success.
First, I will summarize the PHP learning process:
(1) familiar with HTML, CSS, JS, and other basic web page elements. you can create a complete web page at the completion stage to familiarize yourself with the element attributes.
(2) understand the concept of dynamic language, operating mechanism, and familiarity with PHP syntax
(3) learning how to combine PHP and HTML to complete simple dynamic pages
(4) contact MYSQL and start designing database programs
(5) continue to consolidate and understand most common PHP functions, and understand OOP, MYSQL optimization, and templates.
(6) complete a fully functional Dynamic Site
This line may coincide with many PHP enthusiasts. it is also a step-by-step learning process. However, it is quite simple for new users not to see the above summary, I have to pour cold water on you, but nothing is simple. even the bread in the snack area is not made at once.
Let me explain my learning ideas first.
First of all, it is not difficult to understand the concept of a website. any website is composed of webpages. that is to say, to complete a website, you must first learn how to create a webpage. Therefore, you must master HTML, in order to lay the foundation for future website production.
In learning HTML, I think it is the most effective way to learn and do it. of course, this method is also the most effective way to learn PHP.
Any element in HTML must be put into practice in person. only after you understand the effect of any element can you remember it deeply. However, it is absolutely impossible to read a book blindly, I think most new users think that concepts are hard to learn. most of them are "lazy". lazy is the biggest enemy to prevent progress. so they can learn one thing faster by overcoming lazy habits.
Maybe you only want to develop a website as soon as possible when learning PHP, and you will also want me to do the website. why should you learn what web pages such as pediatrics? It is not hard to see that there are not a few novice users with low eyes. this idea is undoubtedly used to build a castle in the air. if you do not have a foundation, how can you build a roof?
OK. mastering the production technology of static web pages is a prerequisite for learning to develop websites. this is mentioned here, because this article is not a tutorial article, it will not conduct in-depth analysis on the technology.
I assume that you can now complete a static page. of course, the nice looking and ugly look is another one. The first page is not good to see, but the child is ugly, we can't give up on what we do, right? After all, this is our result.
So let's start to learn about the concept of dynamic language. when we first got into touch with dynamic language, many people may be confused. why is this messy thing displayed on the webpage another thing? In fact, this is not a mess. isn't the HTML code you write a bunch of characters? After all, the code is not directly output, but processed. to put it bluntly, HTML is through the HTML parser, and PHP is also through the PHP parser, just like learning HTML, if you want any parser to complete the operation, you must use their special syntax structure. it is not surprising that PHP looks strange.
Understanding PHP is the most difficult threshold for new users, but you should feel lucky that PHP has reached the maximum limit for new users. if you have learned other languages, PHP may be quite simple, but if you haven't learned anything before, you can think about it.
The simple principle tells us that even if you cannot understand PHP, you must first get familiar with it and read it over and over again, at the same time, you can think about code as it teaches. even if you don't know what the code is, you should at least look for it.
After a struggle, you are smart, obviously enlightened, and gradually understood the concept of programming. Congratulations, you have taken the first step of success.
After figuring out the concept of HTML and PHP, PHP and HTML mixed programming should not be a problem. during this period, you can let PHP calculate the sum of one and one equals to a few, and then output them in the browser, don't be naive. this is indeed the same as Apollo's moon landing. you are playing a short piece of code, but you have taken a big step in programming! Excited? But I have to drop you some cold water. you are a Cainiao.
Happy for a while, we must continue to work hard. The next step is to study the database. MYSQL can be regarded as the Golden partner of PHP. However, even though this is the case, you may also wish to swallow MYSQL, because this line of stuff is just dizzy.
Dizzy to dizzy, dizzy to dizzy, you can't eat when you bite your tongue, don't you? Let go of fear and continue to work hard. let's conquer it, rather than be conquered by it. let's cheer up, comrade.
After some battles, you finally understood the concept of a database, and you are excited that you can finally connect to the database through PHP. How did you learn this during this period, we won't go into the research, but it turns out that you can.
If you have learned PHP and database, there is no doubt that you are holding MOTOLOLA in your left hand and NOKIA in your right hand. how cool and cool you are, haha, and finally learned, but maybe at this time, someone may casually pat the shoulder and say to you: Dude, don't be so happy too early. you're a newbie. it's a big difference from learning!
When you have worked hard to use PHP to successfully insert, delete, and update data, it is clear that you are just waiting for a while.
You may be in this status at this time:
Do you know HTML? Yes. I can compile several webpages with large table la s!
Do you know PHP? Yes. I will write the one-plus-one operation in the function and call it!
Do you know MYSQL? Yes. I will insert and delete my information in the database.
So what do you do next? I think it's okay to test your skills. let's give you a task and make a message book. it's a comparison with HELLO WORLD! ^ _ ^ Is the first level for beginners.
After a while, you finally learned to insert the form data into the database and then display it. it should be said that the prototype of a program has been born.
However, you may have a look at the East, look at the West, people's forum, the CMS, and the CRM. When should I write one?
Don't worry. it can be said that your horse is almost tied up, and it's time to start practicing the trend. if you have the conditions, use a pen or print a simple PHP manual on your body, from time to time, you can see it. Remember, you cannot leave WC alone (^ 2 ^ ).
If you have other requirements, please take a look at this book. "PHP + mysql web development (the third edition)" is called a Bible-level (it may be a good choice (Statement: The author did not give me any benefit, I am not a book holder either. I have never even met his old man and said -_-)
After consolidating your knowledge and familiarizing yourself with the essentials of PHP and MYSQL development, you may doubt that it was actually written by you? Of course, if there is a ghost in the house, it may be written -_-
At this time, your message book should be added to the registration and paging functions. if you are more powerful, the UI (user interface) can also be enhanced. after the completion, do you feel a sense of accomplishment? In any case, I wrote a dynamic website program and put it on my own website to play games. let's look at it with good friends. Hey, look at how good I wrote, and then publicize it on the Internet.
A few days later, you can open the message book again. why? Wow, more than N pages are displayed! Obviously, your message book has not been well protected. it has been played by JavaScript code. I am very sorry for your feelings at this time, but there is no other way. continue to work hard!
You have worked hard to get familiar with security issues, and then designed some programs. it feels good.
So next, I will learn it? NO, NO, NO. it's still early. Have you ever touched OOP or something? What about the template?
Well, learn! After learning this, you have learned how to generate static web pages. now you should be familiar with XML. well, XML is also known, so you have to contact AJAX? AJAX is finished... then...
All in all, you will never find that you have learned it all. some really strong people will always make new things to lose to you. if you don't learn it, you will lag behind. It also confirms the experience of our predecessors. it is really endless learning!
I want to use my YY to get familiar with some learning processes. maybe my process is the same as some of your ways, but I write so much about it, it is just a reference opportunity for everyone. As for the advantages and disadvantages, we do not dare to pack tickets ^ 0 ^
After reading this, you will find that Luo Wei is so much and is of no use to me. I know how to learn it, but I want to learn how to learn faster. it will take a week to complete quickly, what is the speed of 24 hours, do you have?
I don't know, but if I flat you into the hospital within 2 minutes, I'm sure -_-
Never think about quick start. it tells you a way, but it is useless if you lack the effort.
But one thing I can assure you is that if you have learned PHP, you must be able to learn other languages quickly. in turn, if you have learned other languages before, so learning PHP is certainly faster.
But the syntax is easy to learn, but how to use the syntax to achieve everyone has their own way, almost each has its own merits. However, learning from others' successful code is definitely beneficial and harmless. Therefore, it is the best way to look at the Classic code that has been refined.
After talking so much about PHP, I just want to say that I should not only master methods, but also work hard. I don't want to see people who give up halfway, believe in themselves, believe in your choice, and trust in your abilities. if you want to give up and be violent, you can leave your mouth open and yell at others. Why can't I do it? (Isn't it a bit difficult for coach Luo? it's true that there are too many movies in silence, and it hurts to blow your mouth. you can understand this truth)
In addition, you must guard against the temptation of ASP/PHP/JSP /. NET comparison may make you feel at a loss. you may have learned half of PHP and started to develop C # ideas, or some people say that JAVA is very strong. at this time, you will never waver, even if you really want to learn, you have to learn PHP. Then I will learn from it again. this is the most difficult thing to think about. if I give up halfway, I can only get nothing, but also waste more time and experience, which is not worth the candle, the most important thing is that you will be looked down upon by others, and no one will like to make friends with people who encounter different thoughts and opinions, because such people are too restless and unreliable. therefore, you must force yourself to fulfill your goals, even if it is difficult or persistent, so perseverance is exercised.
...