On Fri, Feb 13, 2009 at 02:30:38PM -0500, Dan Shirah wrote:

> Hello all,
> Can someone point me in the right direction?
> I'm trying to call an EXE from PHP and pass it two variables.
> I looked at the exec() command and I see that this can call the executable,
> but I don't see that it can pass the variables to it.

Use the system() command, and enclose both your command and its
parameters in a pair of single quotes, as:

system('mycmd -a alfa -b bravo');

Paul M. Foster

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to