title: Can I run PHP files on Google App Engine for Python?
body: <p>As a disclaimer, I'm new to app development. </p>
  
  <p>So I've been working on this website using Google App Engine with the Python Runtime Environment. Problems arose when I was creating a simple form in HTML and decided to use PHP to store the data. Am I allowed to use PHP scripts when my application is being run in Python? </p>
  
  <p>I also noticed that GAE now has a PHP runtime environment, so should I use that instead? I only used Python because it was easy to use at first and I didn't think I needed PHP. </p>
  
  <p>This is what my <code>main.py</code> looks like, if it matters: </p>
  
  <pre><code>import os
  from google.appengine.ext import webapp
  from google.appengine.ext.webapp import util
  from google.appengine.ext.webapp import template
  
  class MainHandler(webapp.RequestHandler):
    def get (self, q):
      if q is None:
        q = 'index.html'
  
      path = os.path.join (os.path.dirname (__file__), q)
      self.response.headers ['Content-Type'] = 'text/html'
      self.response.out.write (template.render (path, {}))
  
  def main ():
    application = webapp.WSGIApplication ([('/(.*html)?', MainHandler)], debug=True)
    util.run_wsgi_app (application)
  
  if __name__ == '__main__':
    main ()
  </code></pre>