Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- * pass arguments to a python script and fire it up from php
- */
- $to = 'dokwii@smsmedia.info';
- $message = 'fireup up from php';
- $cmd = "python travelport_lib/sendmail.py '$to' '$message'";
- //shell_exec($cmd);
- if (shell_exec($cmd)) {
- print "successfully fireup the python script";
- } else {
- print 'failed to fireup the python script';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement