title: call php function from python
body: <p>My PHP code:</p>
  
  <pre><code>function start($height, $width) {
      # do stuff
      return $image;
  }
  </code></pre>
  
  <p>Here my Python code:</p>
  
  <pre><code>import subprocess
  def php(script_path):
          p = subprocess.Popen(['php', script_path], stdout=subprocess.PIPE)
          result = p.communicate()[0]
              return result
  
      page_html = "test entry"
      output = php("file.php") 
      print page_html + output
  
      imageUrl = start(h,w)
  </code></pre>
  
  <p>In Python I want to use that PHP start function. I don't know how to access start function from Python. Can anyone help me on this? </p>