【发布时间】:2026-02-26 14:30:02
【问题描述】:
所以我有 2 个应用引擎项目。
在我的一个应用引擎中,我有一个谷歌云存储组件。通常连接到我刚刚做的那些云存储文件:
<?php
use google\appengine\api\cloud_storage\CloudStorageTools;
$document_data = "123";
$object_url = 'gs://{bucket}/FOLDER/file.ext';
$options = stream_context_create(['gs'=>['acl'=>'private']]);
$my_file = fopen($object_url, 'w', false, $options);
fwrite($my_file, $document_data);
fclose($my_file);
?>
或
<?php file_get_contents('gs://FOLDER/file.ext'); ?>
我有另一个没有谷歌云存储的应用引擎,但我想连接到我的另一个应用引擎中的云存储。
有人知道我该怎么做吗?
【问题讨论】:
标签: php google-app-engine google-cloud-storage