文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>快速开发php扩展

快速开发php扩展

时间:2010-09-16  来源:IT老友

-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

相关阅读 更多 +
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载