Google App Engine 下载 php 而不是解释它


Google App Engine downloads php instead of interpreting it

这是我的.yaml

application: awshw
version: 1
module: default
runtime: php55
api_version: 1
handlers:
- url: /css
  static_dir: css
- url: /js
  static_dir: js
- url: /php/lookup.php
  script: lookup.php
- url: .*
  script: index.php

这是我索引中的 Ajax 调用.php

$.ajax({
    url: "php/lookup.php",
    dataType: "text",
    data: {
        symbol: req.term
    },
    beforeSend: function(jqXHR, settings) {
        //document.write(settings.url);
    },
    success: function(result) {
        console.log(result);

    }
});

通常,查找.php 在从本地主机运行时返回 json,但当在 GAE 上运行时.php我获取查找的源代码作为 ajax 查询的结果。

对不起,没关系,我认为这与谷歌应用程序引擎没有正确更新有关,它现在可以工作了。