Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I create a PHP extension on Windows?

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?

like image 845
Sam H Avatar asked Feb 20 '12 17:02

Sam H


1 Answers

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/

like image 140
rkosegi Avatar answered Oct 21 '22 14:10

rkosegi