Learning some PHP experience (1) _ PHP Tutorial-php Tutorial

Source: Internet
Author: User
Learn some PHP experience (1 ). 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, from asking others how to learn PHP, to asking others how to learn PHP, whether it's a novice 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 my PHP learning process: (1) I am familiar with HTML, CSS, JS, and other basic webpage elements. at the completion stage, I can create a complete webpage by myself, familiarity with Element attributes (2) understanding of dynamic language concepts, operating mechanisms, and PHP syntax (3) learning how to combine PHP with HTML to complete simple dynamic pages (4) contact MYSQL and start designing database programs (5). constantly consolidate and understand most common PHP functions, understand OOP, MYSQL optimization, and template (6) to complete a dynamic site with complete functions.

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.

1

...

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.