Since I started asking others how to learn PHP, many people asked me how to learn PHP again. No matter it was a novice or an old bird, I always felt that I couldn’t find a clear path. However, since I learned PHP, I could more or less learn from it.


Grew up has been to listen to others’ experience, therefore in elder people experience let go many detours less, faster to enter the formal, in this to those I don’t know the name of the elder people say thank you, in the eyes of all help, big or small, as long as it is to help, always can let the warm in my heart, I want to, elder people to help me, Not to get a thank you from me, but more out of a sense of responsibility and expectation, so I think only by learning PHP well can I live up to the efforts of my predecessors.

As I said, finally feel a sense of responsibility, also don’t know how much his experience can help the novice, but understand, now it’s time for a responsibility, I need to put their experience to all the people who want to learn PHP, only in this way can make China PHP constant progress, continuous development, in a place in the world.

During the period of learning PHP, I feel that the PHP environment in China is becoming more and more mature, and the standards are gradually improving. The establishment of PHPCHINA marks the official establishment of a PHP organization directly linked to the government in China. Here is a belated round of applause!

Ok, cut to the chase:

Before I start talking about my own learning style, I would like to say a word to those who expect useful information from my article:


Let me summarize my own process of learning PHP:

(1) Familiar with HTML/CSS/JS and other basic elements of the web page, can make a complete web page at the completion stage, to be familiar with element attributes

(2) Understand the concept of dynamic language, operation mechanism, familiar with PHP syntax

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

(4) Contact MYSQL and start to design database programs

(5) Continuously consolidate, understand most common PHP functions, and understand OOP, MYSQL optimization, and templates

(6) Complete a fully functional dynamic site

This line may I talk to many learning PHP enthusiasts, this is a gradual learning process, but beginners don’t see the generalization of the above thought learning pretty simple, here had to pour a little bit about the cold water for you, any things are not simple, even the refreshment room baked wheat cake, nor will immediately.

Let me explain my approach to learning.

First of all, after understanding the concept of the website, it is not difficult to see that any website is composed of web pages, that is to say, to complete the website, we must learn to do web pages first, so we must master HTML, in order to lay the foundation for the future production of the website.

I think that learning by doing is the most effective way to learn HTML, and it’s also the most effective way to learn PHP.

Any element of HTML to practice in person, only understand what elements will have what effect, you will remember, and blindly test, is not absolutely, the reason why I think most beginners think concept is difficult to learn, most of the “lazy” is a word, lazy is the biggest enemy, preventing progress so overcome lazy habits, can be faster to learn something.

Maybe when you are learning PHP, you just want to develop a website as soon as possible, and you will think I do a website, why do you want to learn what pages these children? It is not difficult to see that the novice is not a few, this idea is undoubtedly in the construction of castles in the air, you do not build the foundation, how to the roof?

OK, master static web page production technology is a prerequisite for learning to develop a website, this point is here, because this article is not a tutorial article, it will not be in-depth analysis of the technology.

I assume that you have been able to complete a static page, of course, do good-looking is another say, the first page is not good to see where to go, but “children” ugly, we do “parents” also can’t abandon is not? This is our work, after all.

So let’s begin to learn the concept of dynamic language, just a contact with dynamic language, may be a lot of people will be confused, how this mess of things, in the web page display is another thing? That’s not a mess. Isn’t your HTML code just a bunch of characters? After all, the code is not output directly, it is processed, and HTML goes through the HTML parser, and PHP goes through the PHP parser. Just like learning HTML, if you want any parser to do anything, you have to use their special syntax. So it’s not surprising that PHP looks strange.

For PHP novice understanding is the most difficult to move beyond a threshold, but you should feel lucky PHP is maximum limit for beginners and hard, if you learned any other language, may feel that PHP is really quite simple, but if you haven’t learned anything before, so amitabha, crustily skin of head about it.

Book through three times nature, this simple truth tells us that even if you don’t understand PHP, but it must first be to mix a familiar face, look, look, over and over again to see the both side of the figure, while according to the code it had to teach, even if you don’t know why the code is, but at least you should look for feeling.

After a period of struggle, it is obvious that you have gradually become enlightened and understand the concept of programming. Congratulations, you have taken the first step to success.

In the meantime, you can have PHP tell you what one plus one is, and then output it in the browser. Don’t be naive. It’s like the Apollo moon landing, you’re typing a little piece of code, but for your programming path, But a big step! Excited? But I have to pour some cold water on you, you are still a rookie.

After a while, you have to keep working on it. The next step is to learn about databases. MYSQL is PHP’s best partner, but with that said, you may want to eat MYSQL alive because the rows and columns make you feel dizzy.

Dizzy, dizzy, dizzy. You can’t bite your tongue while you’re eating and never eat again, can you? We are here to conquer it, not be conquered by it. Cheer up, comrade.

After a bit of a struggle, you finally understand the concept of a database, and to your delight, you can finally connect to a database through PHP. How you learned in the process, we won’t go into the research, but it turns out that you can.

Learned PHP and database of you, is undoubtedly the left hand holding MOTOLOLA right hand holding NOKIA, to much natural and unrestrained, have much natural and unrestrained, ha ha, finally learned, but may be this time, and someone casual patted shoulder to you say: brothers, don’t be happy too early, you are still a rookie, from the institute is still a big cut!

By the time you’ve worked hard enough to successfully insert, delete, and update data in PHP, it’s clear you’re on the verge of success.

You might look like this:

Do you know HTML? Yes, I can make several large tabulated web pages!

Do you know PHP? Yes, I will write the operation of one plus one in the function, and then call!

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

So, what should you do next? I think, have a try, probably is ok, then give you a task, make a message book, this and HELLO WORLD have a comparison! ^_^, the first hurdle for the novice.

After a while, you finally learn how to insert the form data into the database, and it shows up, and a prototype application is born.

However, you may take a look at this forum, that CMS, and that CRM, when will I write one?

Don’t worry, you can say that your horse step has been tied almost, the next time to start to practice the potential, if you have the conditions, use a pen or print a simple PHP manual on the body, from time to time to touch out to see, remember, go to WC can not let go (^2^).

PHP+MYSQL WEB Development (3rd edition) is a bible, and it’s probably a good choice.

Once you’ve consolidated your knowledge and become familiar with the essentials of PHP and MYSQL development, you may look back at that message pad and wonder if it was really you who wrote it. Of course, if there was a ghost in the room, it might have written -_-

By this point, your messages should have registered and pagination, and if you’re better, the UI can be enhanced. Anyway, we wrote a dynamic website program, put it on their own website to play, let a good friend to see, hey, see how good I write, and then on the Internet propaganda.

You can open the message board in a few days, eh? Wow, pop up N pages! Obviously, your message book did not do a good job of security, was used JS code a little play, I sympathize with you at this time of feeling, but there is no other way, keep trying!

You work hard, familiarize yourself with the security issues, and then design some programs, and you feel good about it.

So then, this is learning, right? NO, NO, NO, it’s early. You haven’t done OOP yet, have you? The template?

Well, to learn! Now that you’ve learned that, you’ve learned how to generate static web pages, and now you should get your hands on XML, and XML, and AJAX, too? AJAX is finished… And then…

In short, you will never find out that you have learned it all. Some really strong people will always come up with new things to throw at you, and you will fall behind if you do not learn it. This proves that there is no end to learning!

I think through my YY, you should be roughly familiar with some learning process, maybe my process and some of your way out, but no matter how it is the same path, I write so much, but also to give you a chance to learn, as for good or bad, can not guarantee ^0^

I know how to learn, but I want to learn how to learn faster, a week fast, ah no, 24 hours fast, do you have?

I…… I’m not, but I’m pretty sure you’ll be in the hospital in two minutes

Learn something, never delusional have quick this saying, told you a way, but the lack of effort this link, it is also useless.

But one thing I can guarantee you is that if you learn PHP, you’ll learn another language faster, and vice versa, if you’ve learned another language before, you’ll learn PHP faster.

But grammar is easy to learn, but how to use grammar to achieve everyone has their own way, almost different. However, there is no harm in borrowing from other people’s successful code, so the best way to improve is to look at the classic code that has been hammered out.

Speak so much, is just want to say: not only to grasp learning PHP method, more is to pay a sweat, I don’t want to see people give up halfway, believe in yourself, believe your choice, more to believe in your ability, if you want to give up, violence, just smoke yourself a mouth, then roar loud: others can, why can’t I? (Is it a bit of the taste of Yama Coach? It is true that after watching too many movies, it will hurt to smoke your mouth, you actually understand this truth on the line)

Another thing to tell you is, resist the temptation, ASP/PHP/JSP/.NET comparison may make you confused, you may learn PHP half, and then began to hit C# idea, or someone said that JAVA is very strong, this time you must not waver, even if you really want to learn PHP, also have to learn PHP. And then study, the inconsistency is the least desirable, break off the corn, that is the reason why the bear if often put abandon halfway through, can only be found nothing, still N the waste more time and experience, not worth the cost, the most important thing is, you will be looked down upon by others, no one would like to make friends with people of grasshoppers, because this one is too unstable, so unreliable, therefore, You have to force yourself to achieve your goals, even if it may be painful, but you have to stick to it. Perseverance is the way to practice.

How to learn PHP^_^


www.xici.net/u16652873/d…


The article will not play a substantial role in your learning, you can succeed, also have to rely on their own, adhere to, adhere to, and then adhere to, is the only way to success.
PHP background I’m afraid I wouldn’t have known, I believe that you choose a kind of language, and not look at its background and history, more important is to look at it is practical, pompous language even more brilliant history, also put step toward the decline, the good news is that PHP has withstood the test, and therefore, it is a language that is worth learning.