A newcomer has just learned php and has encountered some difficulties. Can someone help me?
Source: Internet
Author: User
I recently started to learn php and used the wamp environment for a week. After learning it on the visual screen, I feel like the process is a bit familiar, but I won't write it. I hope some friends can provide some learning methods that you think are better ~ I have basically no foundation, I only learned C language, and read some basic java syntax rules. Yesterday, my mentor assigned me a task. It was very simple. I wrote an internal prompt through the interface of the telecom service provider. Entering a number can display all the information about the number, but I have no clue .. I really don't think it's easy to ask for help. TT has just started learning php recently. I 've been learning for a week in the wamp environment and followed by visual screen learning. I feel like I am familiar with the process, but I don't know how to write it. I hope some friends can provide some learning methods that you think are better ~ I have basically no foundation, I only learned C language, and read some basic java syntax rules. Yesterday, my mentor assigned me a task. It was very simple. I wrote an internal prompt through the interface of the telecom service provider. Entering a number can display all the information about the number, but I have no clue .. Sincerely think it is not simple = sincerely ask for help TT reply content: first, you should read down my answer on the premise that you want to do web development. If you don't want to do web development, just play around to help the tutor complete the task and so on, you are advised not to learn PHP. It is better to learn Python. after learning PHP, you can only do web, but after learning Python, you can do more. Of course, it's not that PHP cannot do it but it's hard to do it.
============================
Step 1
If I have only written C, I think it is good to watch the video when I get started with PHP. When I watch the video, I 'd better repeat the examples of others and make it better. Video I recommend PHP100 At that time, this entry was also used for learning.
Step 2
Then let's look at the text. After all, the video is still very limited and can only be used for beginners. If you tell a programmer that you are reading video tutorials and learning to write code, you will be despised. PHP tutorial on w3school In, you should repeat the PHP basics and PHP forms (you can repeat them quickly and know where to use them later ). At the same time, you should learn to manually configure the WAMP environment, instead of using the integrated environment.
Step 3
At this time, you should write something, write your own blog, or whatever you like. In short, you should write a website, including the login registration function and form publishing information. Here you need to understand cookie session post get Database Design permission control, familiar with using
SQL addition, deletion, modification, and query statements. In short, you can read the items you saw in w3cschool.
Step 4
At this stage, you need to calm down and read a book, and then study it systematically to make sure you have a basic understanding of the basic syntax. We recommend PHP and MySQL Web Development (formerly known as MySQL 4th) (Douban) .
Step 5
With the above foundation, you can try the framework and recommend the ThinkPHP framework. Or others you like. It is best to write a website and continue to get familiar with it. In addition, it is best to abandon Windows development and start using LAMP. It is best to buy a VPS and try to configure the LAMP environment. DigitaloceanSSD Cloud Server, VPS Server, and Simple Cloud Hosting are recommended. .
Step 6
Learning PHP object-oriented and some core things, PHP core technologies and best practices (Douban) In-depth PHP: Object-oriented, model and Practice (version 2nd) (Douban) PHP advanced programming (Douban) High-performance PHP application development (Douban) You should check these books.
==================================
The above is the general process I learned. Since I want to learn it, I don't have to worry about it. I have to calm down and learn and write things. In addition, the above is just to say that the PHP part will actually involve a lot of additional things, such as HTML + CSS + Javascript, Which is unconditional, it is best to be proficient in JQuery and Bootstrap, in this way, you do not need to worry about the front-end of the website you write. You must also know the database design, design mode, Web security knowledge, and restful API design. In addition, it is better not to be confined to a script, like other Ruby Python NodeJS, it is best to learn about a framework that can grasp each language, such as Rails Tornado Express. 1. Read the manual and imitate the example in the manual.
2. read the manual.
3. Read the manual
N. be familiar with a simple open-source project + read the manual and try to read the documents, or w3school. The video watching efficiency is too low. Write the tutorials on w3school one by one, so don't be afraid of trouble, write a simple message board and a complete blog. To understand the http access process, take a look at php's curl and use the post and get methods to obtain network data and parse the data, which may be a json, xml, or html page, let's take a look at xml parsing and regular expression matching, or open-source class libraries can also be used to encapsulate them directly, so you don't have to worry about the details, get data, and display information. I have never touched PHP in college, and I know PHP after work. For a week, I need to implement cat and tail commands in linux. After implementation, I started the project the next week and thought it was not a problem. I don't need to learn it if I have a C Foundation.
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