Home  >  Article  >  Backend Development  >  PHP 扩充

PHP 扩充

WBOY
WBOYOriginal
2016-06-13 10:38:58806browse

PHP 扩展

我想我还是写点什么好了!!

?

0:

./ext_skel --extname=foo

?

cd foo

?

vi config.m4

?

修改成这样

PHP_ARG_ENABLE(foo, whether to enable foo support,
[? --enable-foo?????????? Enable foo support])


?

1:

vi php_foo.h

增加一个函数声明 PHP_FUNCTION(foo_func);
2:

vi foo.c


?

?

?

3:

//foo dir

phpize

./configure

make

make install

vi php.ini

extenstion=foo.so

?
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:php中兑现多进程Next article:PHP获取远路文件信息