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
14.2k10 gold badges38 silver badges40 bronze badges
asked May 2, 2019 at 9:46
1

1 Answer 1

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()?

answered May 2, 2019 at 9:49
Sign up to request clarification or add additional context in comments.

3 Comments

its not working any other solution in command my exe with aruguments is working but passing with php is not working
Did you try to debug to check where you code stop running ?
i didn't know how to bug.. i tried in command it work properly

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.