如何在app.yaml中引用嵌套的App Engine PHP [英] How to reference nested requires in app.yaml for App Engine PHP

查看:133
本文介绍了如何在app.yaml中引用嵌套的App Engine PHP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 index.php 和一个

require 'myfolder/folder/lib1.php';

所以在 app.yaml 我参考:

- url: /myfolder/folder/lib1.php
  script: myfolder/folder/lib1.php

但这 lib1.php 执行另一个需要'lib2.php'; 在相同的文件夹级别 / myfolder / folder / 。所以它会显示错误500,因为它找不到 lib2.php
如何在app.yaml中正确引用它们?

but this lib1.php does another require 'lib2.php'; at same folder level /myfolder/folder/. So it trows error 500 because it can't find lib2.php. How can I properly reference them both in app.yaml?

推荐答案

错误500基本上是因为Google App Engine for php不支持Facebook php SDK中使用的CURL扩展。没有任何与app.yaml相关的内容。
我分叉了官方fb sdk git,现在我正在修补一个解决方案。

The error 500 was thrown basically because Google App Engine for php doesn't support CURL extension used in the Facebook php SDK. Nothing related to app.yaml includes. I forked the official fb sdk git and I'm patching a solution right now.

这篇关于如何在app.yaml中引用嵌套的App Engine PHP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆