Home  >  Article  >  Backend Development  >  Reflections on studying the spirit of the Third Plenary Session of the 18th CPC Central Committee php study notes page 1/2

Reflections on studying the spirit of the Third Plenary Session of the 18th CPC Central Committee php study notes page 1/2

WBOY
WBOYOriginal
2016-07-29 08:41:311241browse

PHP overview:
php is the abbreviation of Hypertext Preprocessor (Hypertext Preprocessor). It is a server-side, cross-platform, HTML-embedded scripting language. Its unique syntax mixes the characteristics of C language, Java language and Perl language. , is a widely used open source multi-purpose scripting language, especially suitable for web development. PHP is a b/s architecture and a three-tier structure. After the service is started, users do not need corresponding client software and can only use a browser to browse. This saves the graphical user interface and greatly reduces the amount of application maintenance. PHP originated from free software, that is, open source software.
Using PHP for web application development has high security, cross-platform features, supports a wide range of databases, is easy to learn, has fast execution speed, low cost, templates, and supports object-oriented , embedded Zend acceleration engine, stable and fast performance and other advantages. Ranked
3 on the Tiobe world programming rankings, with a market share of 9.977%.
PHP extension library:
Starting from php5, there are new built-in standard extension libraries: XML extension library-DOM, SimpleXML, SPL, SQLite, and libraries like MySql, MySqlI, Overload, GD2, etc. are placed in PECL external extensions Library, select load first in the php.ini configuration file if needed. The default location of the php search extension library
in PHP5 is C:php5. To modify this to match the user's own PHP settings, you need to edit the php.ini file: you need to modify the extension_dir setting to point to the directory where the user places the extension library or the location where the php_*.dll files are placed. For example: extensi
:phpextensions; To enable an extension library in php.ini, you need to remove the comment symbol prefixed by extension=php_*.dll in this line, and delete the semicolon (;) before the extension library you want to load. , for example, enable the Bzip2 extension library. Change the following code; extension=php_bz2.dll to extension=php_bz2.dll;
Preparatory work:
1.HTML (Hypertext Markup Language, Hypertext Markup Language) cornerstone of web development
2.Javascript, client script language, You can also write scripts that execute on the server side.
Basic process of website construction:
Determine the website theme (main content: comprehensive and in-depth) -->Collect materials-->Plan the website (structure, layout, color matching, style, etc.)-->Select development tools-- >Make a web page (first big, then small [structure], first simple and then complex)-->Test website-->Upload website-->Promote and publicize-->Maintain
Update-->Confirm website theme.
php learning resources:
Development tool download website: http://www.jb51.net
php user manual official website: http://www.php.net
Commonly used website resources:
phpchina open source community: http:// www.phpchina.com
How to learn PHP well:
1. Clarify your learning goals and general direction.
2. Learn to configure the PHP development environment
3. Have a solid basic understanding of programming knowledge and master commonly used functions.
4. Understand design patterns.
5. Practice more, think more, and ask for more advice.
6. When learning technology, the most taboo thing is to be impatient. When encountering technical problems, you must treat them calmly.
7. There are thousands of php functions, download a php Chinese manual and a MySql manual.
8. Watch more videos and understand other people’s programming ideas.
9. Develop good programming habits.
10. Don’t give up when you encounter problems, but have the spirit of perseverance and perseverance.
The php configuration is a bit complicated. I spent a long time configuring it last night but it still didn’t work! I had to find a simpler solution: WampServer 5 integrated environment
Wamp5 is an integrated environment for Apache+PHP+Mysql under Windows. It has simple graphics and
Menu installation. This version integrates PHP5.2.5 Mysql5 Apache2 phpMyAdmin 2.11.2.1
SQLiteManager 1.2.0 meets the needs of most PHPers.
From a syntax perspective, the PHP language is similar to the C language. It can be said that PHP draws on the grammatical features of the C language and is modified from the C language. We can mix PHP code and HTML code. Not only can we embed PHP scripts into HTML
files, we can even embed HTML tags in PHP scripts. Here are a few approaches you can take.
You can choose the one that suits you best and stick to it!
Separate from HTML
The following are the methods that can be used: