Just getting started PHP write something every day?

Source: Internet
Author: User
Tags learn php php write
I've been learning PHP for a few months, but I've recently found that I don't know what to do every day. Look at this boring,. Look at that boring, ask for advice?
How to learn PHP in depth

Reply content:

I've been learning PHP for a few months, but I've recently found that I don't know what to do every day. Look at this boring,. Look at that boring, ask for advice?
How to learn PHP in depth

Learn for a few months then start to do a project, do not need very big, in the process of doing will encounter many problems, to try to solve them "is not a solution, but also need to really understand the principle, and then in divergent thinking, there is no other solution"

Of course, good memory is better than bad writing, do not shy, put your problems into a blog, write down your problem-solving process and so on, you will get more. "Don't mind writing enough to be tall."

...

Write so much, on behalf of personal humble opinion.

Focus on planning:
1. For example, to finish a message board within a week, how to do? Start to do addition, mid-term subtraction, the next two weeks to finish a blog, the third time in one months to finish a business site.
2. Executive power: How to maintain 8 hours of energy in a day, focus on one thing, do one thing well.
3. Appropriate rest, time allows to go out and take a look at, let the tense mood relaxed.

Not interested to do, but to do just is interested. Success in learning to "do their own interesting things" is survivors, you are only interested in the just impressive, and related to the pendant of causality, this is the two strings together in the absurdity misunderstanding.

You're asking what's good, but in fact you're just a Jew, and your efforts to overcome it are in addition to the Jewish prophecy.

So, all you need is to come out of the warm, nest, simple and difficult.

See: Why giving up treatment becomes a treatment

Tips for newcomers to the new PHP portal

    1. Do not touch overly large projects and frameworks, such as Drupal, WordPress, etc.
    2. Don't learn too much object-oriented syntax
    3. Write Web pages, don't write weird command-line scripts
    4. To the individual can be completed in half a day to see the results of the main result.

A person I know, recently using PHP to play the public number, you can try. This will not involve the front-end HTML or anything. He started by Sina's SAE, writing with relish.
Of course, you can also start with a traditional web page. If you can make it clear, you can use a little front-end frame, like Bootstrap,jquerymobile.

Personally think, since the study of PHP for a few months, has a basic understanding of PHP ~~~~~ this time, no matter whether you are familiar with the basics of PHP. Now you should try to combine what you have learned to do some small projects.
Like what:
1. Encapsulate a MySQL class of your own
2. Encapsulate a page class of your own (pagination)
3. Encapsulate a upload class of your own
4. Encapsulate one of your own image classes
5. Write a simple post, reply to the simple message board
6. Add login and Registration function to message board
7. Add background management to the message board
8. Add the center to the message board, so that the person can view their message message
9. Add the user can upload the picture of the function of the message board
10. Add JS verification to the message board
11. Optimize the layout of the message board
12 ... etc...

I believe that as long as you put the above features in one step, you should have a harvest.

这个时候我相信你对PHP的理解又会有所不同。这个时候,试着去看一些开源框架。比如:PHPCMS、DEDECMS...分析这些框架的构架然后,学习这些框架的原理....到了后面就需要自己手动构架MVC框架了...差不多就这样。如果你还不满足这些,可以去看PHP的源码这些~~~写一PHP的插件...

After a few months of learning, you should check if you have mastered the use of namespaces and composer, or if you hurry up and cram.

If you want to go further by learning the actual framework, I recommend CodeIgniter 3 and Laravel.

Find something you are interested in thank you, such as writing a simple blog program out, I also learn PHP, I wrote a small blog: http://www.ido321.com/1235.html

Write the message, write the API, write the collection.

Write collection feel the most cool, imagine, every night when you sleep, reptiles are working hard to run, good cool.

I wrote a programmer work cluster product: Code job

Can start from the side of the small needs, such as to do an online statistics, and so on, of course, the big upgrade also need their own continuous learning and exploration.

I suggest that according to your surrounding environment, write a program that can bring convenience to others, such as school check points, lost and found, do a practical programmer. Your satisfaction should be a little stronger.

Do two times development
See the Weibo API
Write your own blog

After reading the answers, I summarize:
1. From the actual project, write more code, in this process will encounter a variety of problems, then try to solve the problems encountered, and record the solution and process, so that the next time you encounter the same problem can be quickly resolved
2. No matter what difficulties you have to complete the project, do not give up halfway, the project after the completion of the code from the beginning, you will still find a lot of problems, don't be afraid, it is normal
3. It is very likely that you have the impulse to rewrite the project, so congratulations, you progress, because you have the idea of improving the project, prove that your technology has improved

Build learning PHP Some open source system, such as Dedecms, WordPress, Discuz These systems in many companies, schools have the use of your future development is extremely advantageous. Here can recommend a tutorial link to you take a good look: www.dasheny.com

Now each website has API open, you can write some interesting things according to their API, of course, basic message book and blog system is also possible. In fact, the main thing is to see you have no idea, if you have the idea of writing anything OK, no idea to force yourself to write also quite uncomfortable. And not very recommended to use PHP to write crawler, write to the back of a large pile of people will let you use Python phantomjs early abandon PHP, haha ha!

Feel like you can try to write something small, and then go to GitHub and other platforms to see the PHP program written by others to try to modify the next

  • 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.