title: php to execute python which requests to a https link fails
body: <p>Hello I have my python file which shows the sell value of bittrex:</p>
  
  <pre><code>import requests
  import time
  import hashlib
  
  
  print("---------------------------new program --------------------------------")
  
  
  r = requests.get(url='https://bittrex.com/api/v1.1/public/getorderbook?market=BTC-XRP&amp;type=both')
  
  print(r.json()["result"]["sell"][0]["Rate"])
  </code></pre>
  
  <p>The python above executed correctly and show the value when execute in console.</p>
  
  <p>And I have a php page to execute and show the result of the price of XRP from bittrex</p>
  
  <pre><code>&lt;?php
    ob_start();
      $output = shell_exec('python3 /home/dramasea/Desktop/mypython.py');
      echo "&lt;pre&gt;$output&lt;/pre&gt;";
  
      ob_end_flush();
  
  ?&gt;
  </code></pre>
  
  <p>Can I know why it only shows <code>-------new program-------</code> on the webpage but not the value of the price as it shown when executed in console</p>