Share with you the PHP learning skills _ PHP Tutorial-php Tutorial

Source: Internet
Author: User
Share your PHP learning skills with you. As we know, I will summarize the process of learning PHP by myself: (1) I am familiar with basic elements of HTMLCSSJS and other web pages. at the completion stage, I can create a complete web page by myself, we know the Element attributes.

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 PHP learning technique 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, everything is actually not simple, even the bread in the snack bar 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 learning and doing are the most effective way. of course, this method is also the most effective for PHP learning skills.
Any element in HTML must be put into practice in person. only after you understand the effect of any element will you be able to remember deeply. However, it is absolutely impossible to read a book blindly.

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

I suppose you can now complete a static page. 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 learning skills is the most difficult way for new users. However, you should feel lucky that PHP has already reached the maximum limit for new users. if you have learned other languages, you may think that PHP is indeed quite simple. even if you cannot understand PHP, you must first get familiar with it.

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 PHP learning technique, but it is useless to learn without any 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 have different opinions. because such people are too restless and unreliable, PHP learning skills are actually, you must force yourself to fulfill your goals, even if it is difficult or persistent, so perseverance is exercised.


I will first summarize the process of learning PHP by myself: (1) familiar with HTML, CSS, JS, and other basic web page elements, you can create a complete web page at the completion stage, element attributes...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.