Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include("db.php");
- $user = 'user';
- $password = 'pwd';
- $script = '/my/path/to/script/script.sh';
- ...
- $testResult = mysqli_query($dbConnection, $queryNextTest);
- $test = $testResult->fetch_object()->test_script; //this is my parameter obtained from query
- $stream = ssh2_exec($connection, $script); //how can I use test as my paramter to execute the
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement