More specifically, I'm trying to make a PHP extension for WampServer, which I'm using to test PHP scripts on my PC. I know that a PHP extension requires a config.m4 file, and some C/C++ code to be created within PHP. How would I get these .c/.cpp and .m4 files into a .dll that's required to make a PHP extension?
更具体地说,我正在尝试为WampServer做一个PHP扩展,我正在用它在我的PC上测试PHP脚本。我知道PHP扩展需要配置。m4文件,以及一些要在PHP中创建的C/ c++代码。我怎么得到这些。c/。cpp和。m4文件到。dll中,这是PHP扩展所需要的吗?
1 个解决方案
#1
2
Take a look at this : Getting Started with PHP Extension-Development
看看这个:开始使用PHP扩展开发。
Generally you need C compiler (with or without IDE), I recommend MS Visual C++ Express. Then follow this tutorial: http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/
通常您需要C编译器(是否有IDE),我推荐MS Visual c++ Express。然后遵循本教程:http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual- visual-c-2005/
#1
2
Take a look at this : Getting Started with PHP Extension-Development
看看这个:开始使用PHP扩展开发。
Generally you need C compiler (with or without IDE), I recommend MS Visual C++ Express. Then follow this tutorial: http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/
通常您需要C编译器(是否有IDE),我推荐MS Visual c++ Express。然后遵循本教程:http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual- visual-c-2005/