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 develop an extension called Heiyeluren, the extension is a function heiyeluren_test (), enter a string, function return: Your input string:xxxxx. Requirements: Understand the C + + programming, familiar with the PHP programming environment: Download a PHP corresponding version of the source code, I here is php-5.2.6, the normal installation of PHP, assuming that our PHP installed in the/usr/local/php directory, the source code in/root/soft/php/ PHP-5.2.6/, start now! Step one: Build the extension framework Cd/root/soft/php/php-5.2.6/ext./ext_skel--extname=heiyelurencd/root/soft/php/php-5.2.6/ext/ Heiyelurenvi CONFIG.M4 After opening the file and removing DNL, get the following message: Php_arg_enable (Heiyeluren, whether to ENABLE Heiyeluren support,[-- Enable-heiyeluren Enable Heiyeluren support]) to save the exit.
http://www.bkjia.com/PHPjc/477755.html www.bkjia.com true http://www.bkjia.com/PHPjc/477755.html techarticle This article is a very quick way to explain how to make a PHP 5.2 environment extension (PHP Extension), I hope to be able to learn in a graphic way for quick friends to learn about the production ...