c with php

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hi every one,
I have a function writen with c and I need to use her on my php
I understood that their is away to do so, since php writen with c
language, but i don't know how.
does someone have a clue?


Re: c with php

Gandalf wrote:
Quoted text here. Click to load it

If you want to just call it as a function, you can write an extension to  
PHP to make it available.  Or if you can run it as a standalone program  
passing and receiving values, you can call the executable via exec() or  

Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.

Re: c with php

Quoted text here. Click to load it

Never done it myself but the process seems to be well documented - you
could do worse than start here:


Of course if its not going to be heavily used/republished it might be
simpler to just write your own wrapper in C to make a standalone
executable then comunicate between it and PHP using stdio
(proc_open()) or sockets.



Site Timeline