logo
  • 教程列表
  • SO官方文档
  • Google App Engine
    • 适用于灵活环境的 Php 应用 app.yaml
    • 安装 gcloud cli
    • 登录并初始化
    • 使用 Php 连接到 Cloud SQL 实例
    • 写入云存储
    • 记录和日志监控
  1. StackOverflow 文档
  2. google-cloud-platform 教程
  3. Google App Engine
  4. 写入云存储

写入云存储

Created: November-22, 2018

App Engine 不允许写入文件,而是写入和读取云存储。

写入云存储

$file = 'gs://<your-bucket>/hello.txt';
file_put_contents($file, 'hello world');

从云存储中读取

$contents = file_get_contents($file);
var_dump($contents); 
  • 记录和日志监控
  • 使用 Php 连接到 Cloud SQL 实例

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 关于我们
  • 免责声明