Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $user = 'hayat';
- $pass = '123456';
- // don't forget to use double quote
- $ret = shell_exec("bash test.sh $user $pass");
- // return will print output from that bash script, you may not need to print return if you don't want.
- print_r($ret);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement