【发布时间】:2013-11-20 17:14:39
【问题描述】:
我使用https://developers.google.com/appengine/docs/php/googlestorage/中的简单示例 但我收到了类似答案的警告访问被拒绝,这里是 PHP 代码:
函数访问GS(){
$options = [ "gs" => [ "Content-Type" => "text/plain" ]];
$ctx = stream_context_create($options);
file_put_contents("gs://mbucket/mFile.txt", "Hello", 0, $ctx);
return file_get_contents("gs://mBucket/mFile.txt");
}
【问题讨论】:
标签: php google-app-engine google-cloud-datastore