0

When I supply arguments to my application it doesn't run. It does without arguments.

shell_exec('C:\Program Files\yrdy\yrdsy\yrdy\yr5dr.exe"/"  user=000"," -pw=123 ');

Please help me.

EzLo
  • 13,780
  • 10
  • 33
  • 38
  • Possible duplicate of [Passing multiple PHP variables to shell\_exec()?](https://stackoverflow.com/questions/16932113/passing-multiple-php-variables-to-shell-exec) – Valentino May 02 '19 at 12:23

1 Answers1

0

please in the future give us more details of you code.

To answer your question, you have to send the arguments with quota

for exemple :

$user=000;
$pw="-pw=123";
shell_exec('C:\Program Files\yrdy\yrdsy\yrdy\yr5dr.exe"/'" .$user."' '" .$pw."'");

Tell us if it helps you.

More details here : Passing multiple PHP variables to shell_exec()?

NoobieNoob
  • 129
  • 1
  • 2
  • 13