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
14.2k10 gold badges38 silver badges40 bronze badges
-
Possible duplicate of Passing multiple PHP variables to shell_exec()?Valentino– Valentino2019年05月02日 12:23:45 +00:00Commented May 2, 2019 at 12:23
1 Answer 1
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()?
answered May 2, 2019 at 9:49
Sign up to request clarification or add additional context in comments.
3 Comments
vikathi
its not working any other solution in command my exe with aruguments is working but passing with php is not working
NoobieNoob
Did you try to debug to check where you code stop running ?
vikathi
i didn't know how to bug.. i tried in command it work properly
lang-php