microsoft / php-sdk-binary-tools

Tool kit for building PHP under Windows
BSD 2-Clause "Simplified" License
270 stars 79 forks source link

Trying to Create My own Extension #68

Closed DDAmine closed 4 years ago

DDAmine commented 4 years ago

i m trying to make my own extension but when i execute "nmake" it says enable to found "Myextesion.c " is there away to make the compiler generate the "Myextesion.c " for me or i have to created myself ps: i m trying to avoid re-implementing the modules on c

cmb69 commented 4 years ago

See http://www.phpinternalsbook.com/ on how to write PHP extensions. See https://www.php.net/support on where to ask for help. Thanks.

DDAmine commented 4 years ago

i did @cmb69 but i m working on windows not linux i just wanna know if i can generate my extension without writing the "**.c" files if there's a way to make the compiler make them , cause i have the code in php and i want to make it a "***.dll" and i have no c knowledge and thx

cmb69 commented 4 years ago

PHP extensions are written in C, not PHP, and there is no way to translate PHP to C.