PHP study (1) embedding C module in PHP

xiaoxiao2021-03-06  43

You can use the C program module as an executable, and then use exec, system, etc. in the PHP program, you can use the command line to pass parameters, or accept the output of the executable program to get the result. For example, / ** add.exe ** / int main (ion argc, char ** argv) {if (argc! = 3) {return -1;} printf ("% d / n", ATOI (Argv [1] ), atoi (argv [1])); return 0;} / ** Test.php *** / / N" ;}?>

转载请注明原文地址:https://www.9cbs.com/read-57190.html

New Post(0)