Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to call C code from php

Tags:

php

is it possible to call C function from 3rd party C library from a PHP5 script. If so any link or how to do it please.

like image 926
tech74 Avatar asked Apr 11 '26 01:04

tech74


1 Answers

You can also write PHP extensions in C. Put very simply, an extension lets you write a function (or functions) in C, then call those functions from PHP.

This Zend article is a good introduction.

like image 126
Mark Biek Avatar answered Apr 12 '26 15:04

Mark Biek



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!