|
Posted by Ruben van Engelenburg on 01/29/07 10:21
balakrishnan.dinesh@gmail.com wrote:
> hi frndz,
>
> As we know that, we can pass command line agrument for C using
> "scanf" commands, So as same as that, Is there any way to pass those
> commandline arguments through php code to C and process them. If there
> plz soon, or tel me any alternative for this
Hi Dinesh,
I'm not sure what you mean, because in C you don't use scanf to retrieve
commandline arguments. You use scanf to get user-input. You use the argc
and argv arguments in main() to access commandline arguments.
In PHP you have similar variables: $argc and $argv. $argc holds the
number of arguments and $argv is the array containing the values.
HTH.
Ruben.
Navigation:
[Reply to this message]
|