I have to run an application from php function. I need to pass variables as a post encoded string. I am using exec() for running the application.
How do I do this without passing the arguments as cmd line arguments.
Tough one ... It may be worth to try passing the arguments to a tmp file, and using the tmp file name as the argument passed to the app, but of course your app must have a way to take data or instructions from a file ...