Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- header('Content-Type: application/json');
- $commands = [
- 'cd /var/www/telelog',
- 'source /var/www/telelog/env/bin/activate ',
- '/var/www/telelog/env/bin/python /var/www/telelog/send_sms.py config_ip ' . $_GET['user_id'] ];
- # exec('/bin/bash -c "'.implode(' && ', $commands) .'"', $output, $return_var);
- print_r(\Yii::$app->params['configName']);
- #print_r($output);
- #echo '<br>';
- #print_r($return_var);
- if($return_var == 0){
- echo json_encode(['result' => true]);
- } else {
- echo json_encode(['result' => false]);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement