hoho Posted March 1, 2012 Report Share Posted March 1, 2012 Gribu palaist vienkāršu php scriptu, kas izsauc ārējo skriptu un izvada rezultātu uz ekrānu. Piem. ir php skripts ar saturu - exec("./mytest", $output, $return); echo "Dir returned $return, and output:\n"; var_dump($output); Skripts mytest vienkārši kautko izvada uz ekrāna: #!/bin/bash echo "OK" Kā palaižot Php skriptu var dabūt šo "OK"? Quote Link to comment Share on other sites More sharing options...
Kavacky Posted March 1, 2012 Report Share Posted March 1, 2012 RTFM Quote Link to comment Share on other sites More sharing options...
mad182 Posted March 7, 2012 Report Share Posted March 7, 2012 (edited) <?php echo `./mytest`; ?> Edited March 7, 2012 by mad182 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.