How to learn php well How to learn php well

WBOY
Release: 2016-07-25 08:57:29
Original
1245 people have browsed it
This article introduces how to learn PHP well and how to learn PHP programming well. Friends in need can refer to it.

Beginners to learn PHP need to master the following contents: 1. PHP basic syntax, like various knowledge points in "Master PHP". 2. Sql, such as the management of Mysql and the writing of sql statements. 3. HTML, you will definitely need these things when making pages. 4. CSS, the more commonly used one now is Div+css design.

Have a basic understanding of apache, nginx, and linux systems, and understand the relevant configurations.

Editor’s recommendation: Things that newbies to PHP should know Several small mistakes that PHP novices often make To advance, do: 1. Choose a good framework, such as Symfony or zend framework. They all adopt the MVC pattern. The framework can reduce a lot of low-level repeated development, and more importantly, it can make multi-person collaboration easier and the project easier to expand.

2. Separate code and page, such as Smarty, which can better separate page (html) and logic processing (php), so that artists and programs can basically work in parallel (provided that the requirements are relatively complete).

3, Advanced caching. This is an eternal topic in PHP development. The reason why websites use PHP is because it is fast. Using caching technology can make the speed faster. The main caching technologies are:

File caching like Pear. Memory cache, such as Memcached. high speed. Operating system cache, such as Squid.

4. Acceleration tools, such as zend optimizer, and page compression.

5. Advanced database technology, such as design optimization, query optimization, clustering, etc. Can you imagine that the database technology used by Google is Mysql? Mysql can be used for massive amounts of data, but it is generally very slow when we reach several million. That is because we have not developed our skills.

6. Optimize Apache, Mysql, and linux servers. The main purpose is to design some configuration file parameters and close some unnecessary services.

7. Algorithms, the efficiency of things written by different people may be dozens of times different. It is recommended to read more algorithm books and practice more comparisons with PHP.

8. To improve the user experience, of course, it must be beautiful, but the page file should not be too large, otherwise it will affect the speed. Use some DHTML and Ajax technologies. Designed with ordinary people’s usage habits in mind. Ajax can use some frameworks, such as prototype.

Of course from the perspective of software engineering, you still have to learn some tools such as CVS, phpunit and so on.

Study more open source things, which will be helpful for learning.

Let’s just introduce these. Of course, different people have different opinions, and everyone has different learning methods and directions.

I hope this article has inspired everyone to learn PHP programming, which is quite gratifying.



source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template