【发布时间】:2019-10-27 01:45:16
【问题描述】:
我正在 standard php73 Google App 引擎环境中编写一些非常简单的代码,遵循此处的文档:https://cloud.google.com/appengine/docs/standard/php/googlestorage/ 和 https://cloud.google.com/appengine/docs/standard/php/googlestorage/setup
php.ini(根据该场景的文档不需要,但以防万一)
google_app_engine.allow_include_gs_buckets = "#default#"
index.php:
file_put_contents("gs://#default#/hello.txt", "some text");
并从 Google App Engine 收到以下错误
file_put_contents(): Unable to find the wrapper "gs" - did you forget to enable it when you configured PHP?
据我从文档中可以看出,应该不需要其他配置,因为 GAE 会在其环境中自动注册文件流包装器。
我错过了什么?谢谢!
【问题讨论】:
标签: php google-app-engine google-cloud-platform google-cloud-storage