Quickly develop a php extension _php tutorial

Source: Internet
Author: User
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 ...

  • Contact Us

    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.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.