I\'m currently trying to get an executable to run from within a PHP web page (currently using exec()
). The program takes two arguments when run from the command
basic PHP syntax error: you're using the wrong quotes. Use double-quotes instead.
exec("C:\wamp\www\web_dev\test\my_program.exe $argument");
^--- ^---
single quotes ('
) do NOT interpolate variables into the string. You're trying to pass a literal $
, a
, etc... as an argument, not the value of that variable.