Advertisement
Guest User

Untitled

a guest
Jul 19th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. <?php
  2.  
  3. $user = 'hayat';
  4. $pass = '123456';
  5.  
  6.  
  7. // don't forget to use double quote
  8. $ret = shell_exec("bash test.sh $user $pass");
  9.  
  10. // return will print output from that bash script, you may not need to print return if you don't want.
  11. print_r($ret);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement