All PHP extensions follow a common structure
1. the header file contains (including all required macros and APIs). 2. c. Declare the export function. 3. Declare the Zend function block.
I. header file inclusionBy default, a new php_extname.h header
Today we introduce a PHP extension development-related book "PHP Internals Book", which is a collaborative effort among several PHP developers to better document and describe how PHP works inside.PHP Internals Book has three main goals:
Linux Install PHP extension memcachePHP extension memcache to support the memcached Database cache server, the following is the installation method.1. Download and unzip the memcache file
Wget-c http://pecl.php.net/get/memcache-3.0.6.tgz
YAF, full name yet another framework, is a C language written PHP framework, is a PHP extension in the form of a PHP development framework, compared to the general PHP framework, it is faster. It provides bootstrap, routing, distribution, views,
1. Download the PHP source package and unzip it to the local2. Enter the extracted PHP directory and go to php-5. The X.x/ext directory. This directory has all the PHP extension modules.3. Go to the specific module directory and take the GetText
PHP Expansion Development
I'm going to summarize my learning and insights about PHP expansion development in this series, and try to describe the basics of developing a PHP extension in a simple and clear way with a Linux system. The level is low,
Need to develop an extended scenario:
1 application is very efficient, such as complex image algorithm, need to be written into the expansion module
2 Some system calls can not be directly accessed with PHP, such as the fork function under Linux to
Introduction: Linux Under the configuration of PHP extension MSSQL, so that PHP through the MSSQL tool implementation and remote win SQL Server data transfer.There are two ways of doing this:One, the first time to compile PHP to provide MSSQL
1. DownloadPre-compiled PHP MongoDB driver binaries (: Php_mongo) for the Windows platform have been provided on GitHub and can be downloaded in a version corresponding to PHP in the real world. I built the environment in PHP version 5.6.11, so the
Whether it is to install PHP or later to add extensions to PHP, in fact, directly download the PHP source package, the inside of the install file read it will be. 1, install PHP installation, not to consider so much, after a variety of dependent
Before developing the extension, it is best to understand the execution process of the PHP kernel, PHP includes three aspects:
SAPIZend VMSInternal expansion
The Zend VM is a PHP virtual machine, similar to the JVM, and is
The previous article introduced the C language method of developing PHP extensions, and now describes how to develop extensions using Zephir.About Zephir need a brief introduction: Zephir is a high-level language for PHP developers who can write a
Ec (2); although PHP provides a large number of useful functions, it may also require extended programming in special circumstances, such as a large number of PECL (PHPExtensionCommunityLibrary) it is provided in an extended form (Dynamic Link
How to connect to the database in the php extension?
Reply content:
How to connect to the database in php Extension
You want to use C to write PHP extensions and perform database operations in extensions. If you are sure you want to do so,
This article is a very quick way to explain how to make a PHP 5.2 environment extension (PHP Extension), in the hope that in a graphic way to let the quick learning of friends to understand the production process. Requirements: For example, to
When PHP extension migration is compatible with PHP 7 recording PHP7 extensions, some kernel methods provided are not fully compatible with previous PHP versions. Many method parameters have been adjusted. The following are some problems encountered
PHP extension: php-affinity Php-affinity can bind processes to a cpu core by setting cpu affinity. In the following scenarios, we may want to modify the cpu affinity of processes:
Frequent parallel operations
Thread scalability test (simulate
Introduction: This is a detailed page for rapid development of PHP extensions. It introduces PHP, related knowledge, skills, experience, and some PHP source code.
Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php?
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.