faqts : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

27 of 70 people (39%) answered Yes
Recently 4 of 10 people (40%) answered Yes

Entry

How do I call and pass variables to a compiled C function using PHP?

Mar 15th, 2008 21:31
dman, ha mo, Kerim Cilingiroglu, Mark, Brett Stoppel, http://www.ttnr.org


"call the compiled c script and pass the data through the POST or GET 
method. The simplest method would probably be GET. For example, if your 
c script is c.cgi and your php script is test.php3, have the php script 
call the c.cgi script in a manner such as the following: 
c.cgi?name1+data&name2+data   The url called can be dynamically 
generated with php."
---
kerim : use exec() command in php. Or cshell_exec or system .. 
depending on your memory resources.
you can use system function or backtick operator as well.