Home > Download >  Learning resources

  • PHP4+ Chinese Reference Manual

    This manual is the simplified Chinese version of the book &lt;PHP4+ Chinese Reference Manual&gt; written by Mr. Peng Wuxing from Taiwan. The author only converted the book from Traditional to Simplified Chinese, changed the Taiwanese terminology in the original book into popular terms, and corrected some semantic errors caused by it. It is for personal reference only<br />

    php e-book28676012018-02-10
  • PHP, Mysql practical training experience

    PHP, Mysql practical training experience in doc format, friends who learn PHP can refer to it<br /> PHP, Mysql training experience <br /> 1. Learning content: (specific content of practical training and learning) <br /> (1) Classic cases <br /> function dialog(){ <br /> var dialog= art.dialog <br /> ({ <br /> title: 'hello world!', <br /> content: '&lt;img src="1.jpg" width="510" height="339" /&gt;' <br /> }); <br /> dialog.lock(); <br /> } <br /> (2) Basic syntax of PHP <br /> 1. Introduction and application of operation types <br /> From left to right, calculate multiplication and division first and then addition and subtraction. When encountering parentheses, calculate within the parentheses first <br /> $a =2; <br /> $b=7; <br /> echo ++$a; <br /> echo $b++; <br /> 2. Data type source code debugging <br /> php and html interaction <br /> Enter html:Echo "html tag statement" in Php <br /> Enter php in Html:&lt;?php echo $a ?&gt;

    php e-book28693182018-02-10
  • php smarty template tutorial (English PDF version)

    <p> When using PHP to develop large-scale, interactive websites, we often encounter the problem of how to cooperate with artists. Usually our solution is to have the artist design the page and then hand it over to the programmer for development, and then hand over the artist to improve the page, and repeat back and forth. Many times, if a programmer is not familiar with HTML, it will be a painful task for both parties and the efficiency will be lower. At this time, it is very important to have template support. <br /> We know that the PHP language, as a member of the open source community, provides various template engines, such as FastTemplate, Smarty, SimpleTemplate, etc., and Smarty is the most commonly used PHP template engine today. Today I will share with you how to install and install it in PHP development. Using Smarty can also be regarded as an introduction to Smarty. <br /> </p>

    php e-book28688102018-02-10
  • Openbiz implements metadata programming in PHP

    Openbiz implements PHP metadata programming, including: Openbiz will lead the innovation of PHP open source framework.pdf. The idea of ​​metadata programming originates from high-level languages ​​like Java. Simply put, it means combining business logic with <br /> The implementation code is separated, and only descriptive languages ​​such as XML are used to describe the mapping relationships between businesses. Programming is completed without writing implementation code. <br /> Originating from the metadata programming features of Java, raw data is one of the advanced technologies in software architecture, allowing you to write less code and achieve more things <br /> It brings the reusability of business logic to the extreme. Maybe it sounds a bit abstract, so let's look at a practical example to help you understand the metadata programming philosophy I advocate. <br /> The Openbiz architecture makes PHP metadata programming possible. The script-level PHP language has now become one of the mainstream languages ​​​​for web development. But because its origin is a process-oriented programming language (I'm talking about php3, which happened back when there was a shovel), it is not like a language like Python or Ruby. It is an ultimate object-oriented language born for objects. . <br /> Based on this simple background, and perhaps the reason that PHP itself is open source and free, we see that advanced extensions for the PHP language always lag behind commercial languages ​​such as .Net, Java, and Objective C. <br /> When PHP5 was released, he shouted "Man, it's object-oriented now!" Java, .Net and Cocoa asked him "You <br /> Are there any metadata programming concepts? …

    php e-book28685352018-02-10
  • Sina.com PHP technical department interview questions

    1. Basic knowledge of php<br /> 1. What are the functions of strlen() and mb_strlen<br /> 2. Which of the following functions uses regular expressions to split strings into arrays ()<br /> A. Split<br /> B. implode<br /> C. explode<br /> D. join<br /> 3. Write the output results of the following programs<br /> &lt;?php<br /> $x=87;<br /> $y=($x%7)*16;<br /> $z=$x&gt;$y?1:0;<br /> echo $z;<br /> ?&gt;<br /> 4. Write down the characteristics of the smarty template

    php e-book28717382018-02-09
  • Hupu.com architecture upgrade path

    SaCaAclome is a universal cloud computing management environment for cloud applications. It aims to provide enterprise cloud data centers with key cloud computing functions such as fast deployment, centralized supervision, elastic scaling, and on-demand provisioning of multiple virtualization and cloud platforms. It can effectively reduce The solution’s hardware costs during development and deployment and subsequent upgrade and maintenance costs improve the adaptability of the solution.

    php e-book28718562018-02-09
  • Grammar courseware about regular expressions

    Basic concepts<br /> Regular expression syntax rules //Retrieval -&gt;Match pattern<br /> PCRE (Perl) compatible regular expression functions<br /> POSIX extended regular expression functions <br /> Regular expressions are a grammatical rule used to describe character arrangements and matching patterns. It is mainly used for pattern segmentation, matching, search and replacement operations of strings. The exact (text) matching we've used so far is also a regular expression. <br /> In PHP, a regular expression is generally a programmatic description of a text pattern composed of regular characters and some special characters (similar to wildcards). <br />

    php e-book28717932018-02-09
  • WordPress Advanced Tutorial (Upgraded Version)

    <p> 1. This tutorial is an upgraded version of the advanced tutorial. Because there are already many basic tutorials on the Internet, there is no need for me to add more than necessary. </p> <p> If you are still a beginner, you can check out simple tutorials done by others. Later, if you want to DIY your own wordpress, you can check this tutorial. </p> <p> 2. The tutorial contains a lot of codes, most of which come from the Internet and are shared. I hope the original author will not have any objections. If you object again, just assume that I am plagiarizing. </p> <p> (The Internet is a medium for sharing. Don’t take it too seriously. If you are serious, don’t post it online.) </p> <p> 3. I have debugged most of the codes one by one, and there are basically no problems. But if you find a problem, I hope you can let me know. Thanks. </p>

    php e-book28722182018-02-09
  • Arrays and data structures in PHP

    In strongly typed programming languages, there are dedicated data structure solutions. Usually, a container is created, in which any type of data can be stored. The capacity of the container can be determined based on the data stored in the container, and the container structure can be variable in length, such as linked lists, stacks, queues, etc., which are all data structures. commonly used forms. In PHP, arrays are usually used to complete work that can be done using data structures in other languages. It is a type language that can store multiple types of data in the same array, and there is no length limit for arrays in PHP. The capacity of the array to store data can also be automatically adjusted according to the increase or decrease in the number of elements inside. <br /> 1. Use arrays to implement stacks<br /> Stack is an implementation form of data structure, and a "first in, last out" data structure is used for data storage. In php, treat the array as a stack and use the two functions array_push() and array_pop() to complete the push and pop operations of data. <br /> --&gt;array_push(): Push one or more units to the end of the array (push onto the stack), and then return the length of the new group. <br /> --&gt;array_pop(): Pop the last unit of the array into the array (pop off the stack)<br /> 2. Use arrays to implement queues<br /> Queue is an implementation form of data structure. Data storage adopts "first in, first out" data structure. In PHP, you can use the array_push() and array_shift() functions to complete the data queue operation by treating the array as a stack. <br /> --&gt;array_shift(): Move the element at the beginning of the array out of the array, and then return the value of the deleted element. <br /> ​ ​ ​ --&gt;array_shift(): Insert one or more cells at the beginning of the array<br />

    php e-book28719512018-02-09
  • Basic usage of static variables in php

    Static variables only exist within the function scope, and static variables only live on the stack. Generally, variables within functions will be released after the function ends, such as local variables, but static variables will not. The next time this function is called, the value of the variable will be retained.​

    php e-book28717952018-02-09
  • Application of PHP in Kingsoft Game Operations

    Good afternoon everyone, what I am going to share with you now is the application of PHP in Kingsoft game operations, including team assistance development implementation methods, website web architecture design, and game operation platform design. <br /> I have two main topics, one is some applications of Kingsoft Game official website, and the other is the architectural design in Keyes, Kingsoft Game operating system. <br /> The official website of Kingsoft Games includes user center, customer service system, forums, videos, official websites of each game, and other game-related products. It mainly uses 64-bit CentOS Linux system, Nginx, PHP 5.2 version, and MySQL 5.5. <br /> Let’s first look at team collaboration development. We have definitely encountered such a situation. In many projects, multiple people develop at the same time, and the development environment and testing environment are different. Many of our PHP engineers develop code on Windows. Although the Nginx+PHP+MySQL environment can also be configured on Windows, since the test environment and production environment are both Linux systems, and some functions can only run under Linux, it is still difficult to Some PHP extensions (for example: distributed image processing, Kingsoft Pass encryption extension) can only run in the Linux environment. When we modify a few lines of PHP code on Windows and want to see the execution results immediately, it will be too slow if we use tools such as FTP to transfer it to a Linux test server for testing. If there are many people developing at the same time on the same Linux test server, and the PHP file you upload may overwrite the file of the same name uploaded by others, there will be no way to achieve version control. <br />

    php e-book28720492018-02-09
  • PHP learning: How to call subclasses in parent classes

    <pre id="best-content-1473363683" class="best-text mb-10">How to call the static properties of the subclass in the PHP parent class? Oh, my god, if the interviewer asks this question , you will definitely say shit, fucky question. You will say that I rarely do this, and PHP is too casual about static operations. It is troublesome for PHP to call the static properties of the subclass in the parent class. We know that the subclass can use the form of self:: to call the static properties of the parent class. However, if the parent class calls the subclass using self::, it can only call the static properties of the parent class. So, what to do? Is it impossible to do this with php? The answer is of course no. In PHP, you can also use the method called in the parent class using the class name of the subclass. </pre>

    php e-book28717742018-02-09
  • PHP website development case tutorial

    "PHP Website Development Case Tutorial" teaching courseware, PPT format, electronic teaching reference material, 180 pages, including the following 10 chapters:<br /> Chapter 1 Configuring PHP development environment;<br /> Chapter 2 PHP Language Basics;<br /> Chapter 3 Arrays and Functions;<br /> Chapter 4 Strings and Regular Expressions;<br /> Chapter 5 Building PHP interactive web pages;<br /> Chapter 6 PHP File Programming;<br /> Chapter 7 PHP Image Processing;

    php e-book28723162018-02-09
  • Getting Started with PHP

    PHP is a powerful network programming language that is easy to learn and use, and has excellent portability and scalability. This book will introduce PHP programming to readers in detail. <br /> The whole book is divided into three parts: preparation, beginning and acceleration, with a total of 9 chapters. The preparatory chapter mainly introduces some preparatory knowledge for learning the PHP language and the establishment of the PHP operating platform; the beginning chapter introduces readers to the basic syntax and common functions of the PKP language in more detail, as well as how to use PHP to operate the MySQL database; the acceleration chapter introduces Typical examples are introduced to enable readers to fully grasp PHP. <br /> This book includes a large number of examples in the explanation of grammar to facilitate readers' learning. At the same time, it also includes some typical exercises in the form of "questions and tips" at the end of each of the first two chapters to consolidate what readers have learned. knowledge. <br />

    php e-book28722022018-02-09
  • PHP object-oriented programming

    <p> Object-oriented programming (OOP) is a basic skill for our programming, and PHP5 provides good support for OOP. How to use OOP ideas to perform advanced programming of PHP is very meaningful for improving PHP programming capabilities and planning a good Web development architecture. Below we will use examples to illustrate the practical significance and application methods of using PHP's OOP for programming. </p> <p> When we usually build a website with a database backend, we usually consider that the program needs to be suitable for different application environments. What is different from other programming languages ​​is that in PHP, the database is operated by a series of specific functions (if you do not use the ODBC interface). Although this is very efficient, the encapsulation is not enough. If there is a unified database interface, then we can apply it to multiple databases without making any modifications to the program, thus greatly improving the portability and cross-platform capabilities of the program. </p>

    php e-book28720242018-02-09
  • PHP Teaching Courseware Chapter 1 PHP Overview

    PHP (foreign name: PHP: Hypertext Preprocessor, Chinese name: "Hypertext Preprocessor") is a general open source scripting language. The syntax absorbs the characteristics of C language, Java and Perl, which is easy to learn and widely used. It is mainly suitable for the field of Web development. PHP's unique syntax mixes C, Java, Perl, and PHP's own syntax. It can execute dynamic web pages faster than CGI or Perl. Compared with other programming languages, dynamic pages made with PHP embed programs into HTML (an application under the Standard Universal Markup Language) document for execution, and the execution efficiency is much higher than CGI that completely generates HTML tags; PHP can also execute compiled code. Compilation can achieve encryption and optimize code running, making the code run faster.

    php e-book28719022018-02-09
  • PHP basics consolidation notes summary

    PHP variable scope<br /> The scope of a variable is the part of the script where the variable can be referenced/used. <br /> PHP has four different variable scopes:<br /> local<br /> global<br /> static<br /> parameter<br /> <br /> Variables: When internal function variables access global variables, you need to add global:<br /> Example:<br /> &lt;?php<br /> $x=10;<br /> $y=23;<br /> <br /> function add(){<br /> global $x,$y;<br /> $y=$x+$y;<br /> }<br /> add();<br /> echo $y;<br /> ?&gt;<br />

    php e-book28719122018-02-09
  • PHP session tracking

    1 What is session control<br /> Reason for occurrence: http is a stateless protocol. Each time it is a different server request, the relationship between the two request transactions cannot be maintained.<br /> Session control: Able to track a variable in the website. By tracking the variable, multiple requests can be connected, and different content and different pages can be displayed based on authorization and user identity<br /> Cookie: It is a text file set by the server on the client to save the client's personal information.<br /> <p> 2 Session tracking technology </p> Hide form fields<br /> url rewriting<br /> cookie technology<br /> session technology<br />

    php e-book28720682018-02-09
  • PHP language structure

    1. What is language structure <br /> Language structure: It is the keyword of the PHP language and part of the language grammar; it cannot be defined by the user or added to a language extension or library; it may or may not have variables and return values. <br /> 2. The reason why language structures execute quickly <br /> Functions must first be decomposed into language structures by the PHP parser (Zend engine). Therefore, functions have one more layer of parser analysis than language structures, and the speed is relatively slow <br /> 3.What are the language structures in php <br /> echo() <br /> print() <br /> die() <br /> isset() <br /> unset() <br /> include(), note that include_once() is a function <br /> require(), note that require_once() is a function <br /> array() <br /> list() <br /> empty()

    php e-book28717102018-02-09
  • PHP common function blocks

    1. *Error classification in php:<br /> 1. Syntax error:<br /> 2. Runtime error:<br /> 3. Logic error:<br /> 2. *In the php.ini configuration file, commonly used error and log configurations. <br /> error_reporting: error level<br /> display_errors: Whether to display error messages in the browser<br /> log_errors=On; Whether to start logging<br />

    php e-book28723192018-02-09