Home > Download >  Learning resources

  • Object-oriented programming in PHP

    Object-oriented programming<br /> The code is more concise, easier to maintain, and has stronger reusability: reusability, flexibility, and scalability. <br /> Object-oriented thinking is more in line with the general rules of how humans look at things. <br /> PHP is not a true object-oriented programming language, but object-oriented ideas can be learned from, and most of them can be implemented well, which is very advantageous in the design of large projects. <br />

    php e-book28382562018-02-22
  • PHP extension development tutorial (Chinese version)

    Writing Extensions I: Getting Started with PHP and Zend Writing Extensions I: Getting Started with PHP and Zend Extensions Tutorial by Sara Golemon | Monday, February 28, 2005 Introduction What are extensions? Lifecycle Memory allocation Set up the build environment Hello World Build your extension Initial settings (INI) as global values ​​Initial settings (INI) as global values ​​Check (code) integrity What's next? Introduction Since you are reading this tutorial, you may be interested in writing extensions to the PHP language. If it wasn't...well, maybe you didn't know about this interest, you'll find it out by the time we wrap up. This tutorial assumes you have basic familiarity with the PHP language and the language its interpreter is implemented in: C. Let's start by specifying why you want to write a PHP extension. 1. Limited to the level of abstraction of the PHP language itself, it cannot directly access certain libraries or operating system-specific calls. 2. You want to customize the behavior of PHP in some unusual way. 3. You have some existing PHP code, but you know it can be faster, smaller, and consume less memory.​

    php e-book28381792018-02-22
  • Session tracking for PHP

    <p> 1. Reasons for session control </p> <p> When switching between multiple pages, the user's logged-in status is maintained, and all the information accessed is the user's logged-in information. </p> <p> Mechanism that can handle the sharing of data by the same user on multiple pages in the same website. </p> <p> 2. Application of cookies </p> <p> Saving data to the client is relatively unsafe (personal preference information is less important information) </p> <p> Transmitting data. If there is too much data, the speed drops. </p> <p> 1. Set cookies in the client </p> <p> The setcookie() function sends an HTTP cookie to the client. If successful, the function returns true. Otherwise return false </p>

    php e-book28380402018-02-22
  • Commonly used function blocks in PHP

    1. *Error classification in php:<br /> 1. Syntax error:<br /> 2. Runtime error:<br /> 3. Logic error:<br /> <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 /> <br /> //Use function to temporarily set error information <br /> ini_set() //php.ini configuration information temporary setting function<br /> ini_set("display_errors","On"); //Through function setting, the current script can temporarily turn off error output. <br /> error_reporting(E_ALL & ~E_NOTICE); //Temporarily set the error output level.

    php e-book28379152018-02-22
  • PHP+MySQL web development from entry to proficiency

    The examples of "PHP+MySQL Network Development from Beginner to Master" have been carefully selected by the author and are highly practical, including online message boards, online voting systems, network traffic statistics systems, music resource download systems, and second-hand trading market systems. Talent recruitment system and travel online registration system, etc. Readers can learn related technologies systematically through these examples, or they can make slight modifications based on the examples and use them independently.

    php e-book28394092018-02-22
  • php smarty template tutorial

    <p> MVC is a development model that emphasizes the forced separation of data input, processing, and display. </p> <p> Smarty usage tutorial<br /> 1. How to configure our smarty<br /> After unzipping, place the libs folder in the first-level directory of the website, and then create two folders<br /> templates stores template files<br /> templates_c stores compiled files<br /> Create the initialization file smarty.ini.php again </p> <p> Note:<br /> 1. Generally use &lt;{}&gt;<br /> as the identifier separator for replacement variables. Two ways to change the delimiter:<br /> 1. Change the source code: Smarty.class.php $left_delimiter Not recommended<br /> 2. Dynamic modification:<br /> $Smarty-&gt;left_delimiter="&lt;{";<br /> $Smarty-&gt;right_delimiter="}&gt;";<br /> written before display </p> <p> 2.smarty allocates data<br /> $smarty-&gt;assign("Address",$address);<br /> Used to assign values ​​to templates. You can specify a name/number pair or an associative array containing name/numbers. <br /> $smarty-&gt;assign("aa",true); //Output 1 <br /> $smarty-&gt;assign("aa",false); //Output is empty </p>

    php e-book28381482018-02-22
  • How 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-book28378102018-02-22
  • Openbiz enables PHP to achieve ultimate business logic reuse

    This article continues to introduce the "free and open source" Openbiz framework, which is an application based on the Zend framework<br /> Layer PHP framework. In the previous article "Openbiz implements PHP metadata programming", it was mentioned through metadata (Metadata)<br /> To describe the ultimate description of business logic, the essence lies in the ultimate abstract idea of ​​high cohesion and low coupling. This article I<br /> We will explain how to achieve ultimate business logic reuse through this idea. <br /> Openbiz middle layer built on Zend <br /> This architectural approach is similar to the middle layer concept proposed by Java,<br /> In the Openbiz system, in addition to data logic, there will be<br /> In addition to advanced features such as memory management and object factories,<br /> From its source code structure we see most of the external features<br /> The implementation of business logic still relies on the bottom layer of Zend<br /> To complete these logics, Openbiz itself<br /> The work done is equivalent to the call logic and implementation<br /> Logic is only visible to the middle layer. <br /> What are the benefits of this? Isn't it unnecessary? <br /> The core value of Zend is to integrate many underlying business logic<br /> Editing to achieve business versatility at the code level. Translated into<br /> To put it bluntly, Zend has indeed done a lot of low-level things,<br /> But we still have to do a lot of preliminary work when using it<br /> Initialization and setup work, which is done in the Zend box<br /> The rack must definitely be completed by writing code. <br /> So this way of writing code initialization reuses logic<br /> As far as I'm concerned, it's better than nothing, but it's definitely not enough. <br />

    php e-book28377712018-02-22
  • Openbiz will lead the innovation of PHP open source framework

    <p> Target audience: </p> <p> Software industry manager and entrepreneur<br /> <br /> Author's statement </p> <p> I have been engaged in the software development industry for nearly twelve years, and have experienced changes from Windows 3.2 to China for the first time to the unified mobile application market of Apple and Android. In this business war, grasping the direction of future development is the last word to ensure survival in the competition. This initiated this article. <br /> <br /> citation </p> <p> For many years, we have been exploring the future development direction of enterprise-level applications and found that the accumulation and reuse of technology is one of the important factors in improving the competitiveness of this industry. </p> <p> (Of course this is not the only condition for success.) Let me look at the rise and fall of this industry from the perspective of technology reusability. <br /> <br /> In the early stages of starting a business, many small software development teams often undertake outsourced software development work as their main source of business. When facing market competition,<br /> Most people continue to accumulate commonalities in customer needs and try to separate common business logic for reuse in other projects. This can gradually reduce future development labor costs. It sounds like a good logic, but in In actual application, the effect is rarely seen. </p>

    php e-book28377882018-02-22
  • What should you pay attention to when compiling PHP under Linux?

    <pre id="best-content-2802198358" class="best-text mb-10">I have been writing code under Ubuntu for a year, and I have tried various Linux Distribution, and finally gave up (see my Linux for details) Distribution/desktop environment choice), the Linux desktop is too confusing, so stay on the server side. Currently using Win8.1 + Ubuntu Server 14.04 (running in VM). It is usually enough to use the PHP environment under Win. If that doesn't work, just open the VM in the background and log in with Xshell to operate. In this way, it is possible to write code under Windows and run it under Linux. (SSD means no pressure)</pre>

    Web page production28643982018-02-12
  • Traffic aggregation plug-in aggregate

    Traffic aggregation plug-in under cacti can monitor windows host traffic with information station

    Web page production28648532018-02-12
  • ThinkPHP execution process

    ThinkPHP was born to simplify enterprise-level application development and agile WEB application development. It was first born in early 2006, and was officially renamed ThinkPHP on New Year's Day 2007, and was released under the Apache2 open source agreement. ThinkPHP has been adhering to the simple and practical design principle since its birth. While maintaining excellent performance and minimal code, it also focuses on ease of use. And it has many original functions and features. With the active participation of the community team, it is continuously optimized and improved in terms of ease of use, scalability and performance.

    Web page production28647282018-02-12
  • How to use Portal technology

    Portal serves as a gateway to a WEB site on the Internet. Portal is a collection of links, content, and guidance services that provide information that users may find of interest (such as news, weather, entertainment, business sites, chat rooms, etc.). <br /> 1. Portal serves as a WEB site on the Internet as a gateway. Portal is a collection of links, content, and guidance services that provide information that users may find of interest (such as news, weather, entertainment, business sites, chat rooms, etc.). Yahoo, Excite, MSN.com and Netscape NetCenter are all Portals. <br /> 2. In fantasy games, science fiction and some "new era" philosophies, a portal is a passage into another world in the past, present or future, or into an expanded understanding. <br /> 3. In 3D graphics development, Portal is a technology that increases the effect of realism and accelerates display. <br />

    Web page production28643872018-02-12
  • A must-see example for PHP beginners

    How to create our first PHP page? Very simple! Choose one of the best design tools we use, or you can just use Notepad. After creating it, remember to save it as a file with a PHP extension and then transfer it to our server. Before writing a PHP program, we usually need to configure our environment, which means that the server must support PHP.

    Web page production28649832018-02-12
  • Joomla secondary development encyclopedia

    Joomla! is a world-renowned content management system. Joomla! is a software system developed using PHP language and MySQL database. The latest version is 3.8. It can be executed on various platforms such as Linux, Windows, MacOSX, etc. It is currently developed and supported by the open source organization Open Source Matters (see further reading). This organization has members from all over the world. There are about 150 team members, including developers, designers, system managers, and document writers. , and more than 20,000 participating members.

    Web page production28614772018-02-12
  • Joomla template making

    Joomla! is a world-renowned content management system. Joomla! is a software system developed using PHP language and MySQL database. The latest version is 3.8. It can be executed on various platforms such as Linux, Windows, MacOSX, etc. It is currently developed and supported by the open source organization Open Source Matters (see further reading). This organization has members from all over the world. There are about 150 team members, including developers, designers, system managers, and document writers. , and more than 20,000 participating members.

    Web page production28616092018-02-12
  • Joomla plug-in development encyclopedia

    Joomla! is a world-renowned content management system. Joomla! is a software system developed using PHP language and MySQL database. The latest version is 3.8. It can be executed on various platforms such as Linux, Windows, MacOSX, etc. It is currently developed and supported by the open source organization Open Source Matters (see further reading). This organization has members from all over the world. There are about 150 team members, including developers, designers, system managers, and document writers. , and more than 20,000 participating members.

    Web page production28613842018-02-12
  • Mini-Handbook of Design Patterns

    Design patterns represent best practices and are commonly used by experienced object-oriented software developers. Design patterns are solutions to common problems faced by software developers during the software development process. These solutions are the result of trial and error by numerous software developers over a long period of time. <br /> A design pattern is a set of code design experiences that have been used repeatedly, are known to most people, and are classified and cataloged. The purpose of using design patterns is to reuse code, make the code easier to understand by others, and ensure code reliability. There is no doubt that design patterns are win-win for ourselves, others, and the system. Design patterns make code compilation truly engineering. Design patterns are the cornerstone of software engineering, just like the bricks and stones of a building. Reasonable use of design patterns in projects can perfectly solve many problems. Each pattern has corresponding principles in reality to correspond to it. Each pattern describes a problem that keeps recurring around us, and the solution to the problem. Core solution, which is why design patterns can be widely used<br />

    Web page production28648242018-02-11
  • Simple multi-source report

    A multi-data source report means that multiple data sets can be defined in one report, and the required database tables can be retrieved respectively. The database tables can even come from different databases. This article uses several examples to illustrate how data from multiple datasets are related to each other to implement multi-source reporting.

    Web page production28643072018-02-11
  • Web service development

    Hatena is one of the largest Web service providers in Japan. The services it provides include keywords (similar to Wikipedia), blogs, photo albums, etc. The content of this book mainly comes from the summer internship courses held by Hatena for students. The content covers a wide range of aspects, including performance optimization, distribution, algorithms, system architecture, etc., and even the economic cost of hardware. It is an operation and maintenance engineer. An indispensable reference book for us. The book includes several algorithm practice topics and introduces the implementation methods of compression algorithms, full-text search and other algorithms. It is a very good reference book for those who plan to start a business on the Web.

    Web page production28645982018-02-11