tags:

views:

70

answers:

1

Hi, just wanted to know how to call php script from running C code on Linux and pass a couple of parameters.

Thanks

A: 
system("/usr/bin/php /path/to/program.php param1 param2");
matiasf
You should rather advice the use of execlp() or something like it, for security reasons.
Scytale
Ugh, system(). Stay away!
tc.
This is a perfectly acceptable answer to the question that was asked. There was no mention of any mistrust of the script or data passed to it.
nategoose