php-plugin插件开发

进入源代码目录:
cd php-5.5.7/ext/myabc
生成插件骨架代码:
./ext_skel –extname=myabc
Creating directory myabc
Creating basic files: config.m4 config.w32 .svnignore myabc.c php_myabc.h CREDITS EXPERIMENTAL tests/001.phpt myabc.php [done].

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

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