title: How to compile Python from PHP?
body: <p>I am working on an Encryption Project and have used PyCrypto module in Python for all the Cryptographic algorithm.</p>
  
  <p>When I connect PHP with MongoDB, at the user sign up I need to link each user with a specific public and private key, the code for RSA Key generation is in Python and I am using PHP to store all the user information in MongoDB.</p>
  
  <p>How to call Python scripts and use the output in PHP without executing the script in shell first as it is a time taking process?</p>
  
  <p>Is there any cross-compiler present for both PHP and Python so that I can execute on the same compiler ?</p>