Home Backend Development PHP Tutorial 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

Jul 29, 2016 am 08:41 AM

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:


Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Explain JSON Web Tokens (JWT) and their use case in PHP APIs. Explain JSON Web Tokens (JWT) and their use case in PHP APIs. Apr 05, 2025 am 12:04 AM

JWT is an open standard based on JSON, used to securely transmit information between parties, mainly for identity authentication and information exchange. 1. JWT consists of three parts: Header, Payload and Signature. 2. The working principle of JWT includes three steps: generating JWT, verifying JWT and parsing Payload. 3. When using JWT for authentication in PHP, JWT can be generated and verified, and user role and permission information can be included in advanced usage. 4. Common errors include signature verification failure, token expiration, and payload oversized. Debugging skills include using debugging tools and logging. 5. Performance optimization and best practices include using appropriate signature algorithms, setting validity periods reasonably,

How does session hijacking work and how can you mitigate it in PHP? How does session hijacking work and how can you mitigate it in PHP? Apr 06, 2025 am 12:02 AM

Session hijacking can be achieved through the following steps: 1. Obtain the session ID, 2. Use the session ID, 3. Keep the session active. The methods to prevent session hijacking in PHP include: 1. Use the session_regenerate_id() function to regenerate the session ID, 2. Store session data through the database, 3. Ensure that all session data is transmitted through HTTPS.

Describe the SOLID principles and how they apply to PHP development. Describe the SOLID principles and how they apply to PHP development. Apr 03, 2025 am 12:04 AM

The application of SOLID principle in PHP development includes: 1. Single responsibility principle (SRP): Each class is responsible for only one function. 2. Open and close principle (OCP): Changes are achieved through extension rather than modification. 3. Lisch's Substitution Principle (LSP): Subclasses can replace base classes without affecting program accuracy. 4. Interface isolation principle (ISP): Use fine-grained interfaces to avoid dependencies and unused methods. 5. Dependency inversion principle (DIP): High and low-level modules rely on abstraction and are implemented through dependency injection.

How to debug CLI mode in PHPStorm? How to debug CLI mode in PHPStorm? Apr 01, 2025 pm 02:57 PM

How to debug CLI mode in PHPStorm? When developing with PHPStorm, sometimes we need to debug PHP in command line interface (CLI) mode...

How to automatically set permissions of unixsocket after system restart? How to automatically set permissions of unixsocket after system restart? Mar 31, 2025 pm 11:54 PM

How to automatically set the permissions of unixsocket after the system restarts. Every time the system restarts, we need to execute the following command to modify the permissions of unixsocket: sudo...

Explain late static binding in PHP (static::). Explain late static binding in PHP (static::). Apr 03, 2025 am 12:04 AM

Static binding (static::) implements late static binding (LSB) in PHP, allowing calling classes to be referenced in static contexts rather than defining classes. 1) The parsing process is performed at runtime, 2) Look up the call class in the inheritance relationship, 3) It may bring performance overhead.

How to send a POST request containing JSON data using PHP's cURL library? How to send a POST request containing JSON data using PHP's cURL library? Apr 01, 2025 pm 03:12 PM

Sending JSON data using PHP's cURL library In PHP development, it is often necessary to interact with external APIs. One of the common ways is to use cURL library to send POST�...

See all articles