Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2018
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.40 KB | None | 0 0
  1. -------------------a.php--------------------
  2. <?php  
  3.     $OUTPUT = shell_exec("/usr/bin/python3 python.py");
  4.     if(strcasecmp($OUTPUT,"INVALID")){
  5.         echo "SOMETHING";
  6.     }else{
  7.         echo "DOESN'T WORK";
  8.     }
  9. ?>
  10. --------------------------------------------
  11.  
  12. ----------------------python.py-------------
  13. print("NOT INVALID") #if you don't know python, this basically just print out "NOT INVALID" into the stdout
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement