6

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?

Sam H
  • 956
  • 4
  • 16
  • 24
  • 1
    Maybe [this](http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/), [this](http://stackoverflow.com/questions/1093921/how-do-i-compile-an-extension-for-php-5-3-for-windows-as-a-dll), [this](http://www.devarticles.com/c/a/Cplusplus/Developing-Custom-PHP-Extensions-Part-1/) or [this](https://wiki.php.net/internals/windows/stepbystepbuild) will help you. – lorenzo-s Feb 20 '12 at 17:19

1 Answers1

2

Take a look at this : Getting Started with PHP Extension-Development

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/

Community
  • 1
  • 1
rkosegi
  • 14,165
  • 5
  • 50
  • 83