Home  >  Article  >  Backend Development  >  php的chinapay扩充安装

php的chinapay扩充安装

WBOY
WBOYOriginal
2016-06-13 10:29:391471browse

php的chinapay扩展安装

cp ~/chinapay/netpayclient.h /usr/local/include/chinapay.hcp ~/chinapay/libnpc.so /usr/local/lib/libchinapay.sochmod +x /usr/local/lib/libchinapay.so
可能是在/lib(/lib64) /usr/lib下面
准备chinapay的动态库和头文件
拷贝chinapay.def打php源码目录下的ext目录,
./ext_skel --extname=chinapay --proto=chinapay.def
生成php扩展的chinapay文件夹
拷贝做好的文件到生成的扩展目录
cp php_chinapay.h chinapay/cp chinapay.c chinapay/cp netpayclient.h chinapay/

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