Want to run a c program from php using exec () function
I am trying to run a single c executable using php exec()
.
If c contains a simple program like print hello
. I use
exec('./print.out')
It works fine. But when I need to pass an argument to my c program, I use
exec('./arugment.out -n 1234')
He does not work. Can any body tell me how to get through a press release using the exec
to c.
+2
a source to share