美文网首页
我的第一个PHP扩展

我的第一个PHP扩展

作者: 长安猎人 | 来源:发表于2018-10-22 22:06 被阅读0次

    第一步:使用ext_skel 生成

    [root@localhost ext]# ./ext_skel --extname=study
    Creating directory study
    Creating basic files: config.m4 config.w32 .gitignore study.c php_study.h CREDITS EXPERIMENTAL tests/001.phpt study.php [done].
    
    To use your new extension, you will have to execute the following steps:
    
    1.  $ cd ..
    2.  $ vi ext/study/config.m4
    3.  $ ./buildconf
    4.  $ ./configure --[with|enable]-study
    5.  $ make
    6.  $ ./sapi/cli/php -f ext/study/study.php
    7.  $ vi ext/study/study.c
    8.  $ make
    
    

    相关文章

      网友评论

          本文标题:我的第一个PHP扩展

          本文链接:https://www.haomeiwen.com/subject/zqpnzftx.html