Rapid development of php extensions

Source: Internet
Author: User
Rapid development of php extensions-bash-3.1 $./ext_skel -- extname = wd_probe

To use your new extension, you will have to execute the following steps:

1. $ cd ..
2. $ vi ext/wd_probe/config. m4
3. $./buildconf
4. $./configure -- [with | enable]-wd_probe
5. $ make
6. $./php-f ext/wd_probe/wd_probe.php
7. $ vi ext/wd_probe/wd_probe.c
8. $ make

Repeat steps 3-6 until you are satisfied with ext/wd_probe/config. m4 and
Step 6 confirms that your module is compiled into PHP. Then, start writing
Code and repeat the last two steps as often as necessary.


# Vi config. m4
PHP_ARG_ENABLE (wd_probe, whether to enable wd_probe support,
Dnl Make sure that the comment is aligned:
[-- Enable-wd_probe Enable wd_probe support])

/Usr/local/php/bin/phpize
./Configure -- with-php-config =/usr/local/php/bin/php-config
Make
Make test
Make install

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.