How can I call a C function in a PHP script? I heard on windows there is an interface so that you can call win32 functions, is there a correpsonding way on Unices (solaris, linux for example)?
BTW, what is the most popular php debugging tools?
But, if your C application can be called from the command line, with arguments, such as "myprogram arg1 arg2", or any combination of command-line calls (including piping), then PHP will talk to it just fine (
As you can see from the last link, there are several methods for program execution, depending on just how you want the execute, capture output, errors, etc...
If you have any experience with Perl, PHP's program execution functions are very similar. -------------------------------------------
Big Brother: "War is Peace" -- Big Business: "Trust is Suspicion"
(
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.