Ok, i've a simple php page on google appengine with the code in the google
PHP doc :
function accessGS(){
$options = [ "gs" => [ "Content-Type" => "text/plain" ]];
$ctx = stream_context_create($options);
file_put_contents("gs://mybucket/myFile.txt", "Hello", 0, $ctx);
return file_get_contents("gs://mybucket/myFile.txt");
}
and i received the error :
Warning: Access Denied in
/base/data/home/runtimes/php/sdk/google/appengine/ext/cloud_storage_streams/CloudStorageWriteClient.php
on
line 116
Warning: file_put_contents(gs://meteo/HelloWorld.txt): failed to open
stream:
"\google\appengine\ext\cloud_storage_streams\CloudStorageStreamWrapper::stream_open"
call failed in ....
Warning: Cloud Storage Error: FORBIDDEN in
/base/data/home/runtimes/php/sdk/google/appengine/ext/cloud_storage_streams/CloudStorageReadClient.php
on line 285 Warning: file_get_contents(gs://meteo/HelloWorld.txt): failed
to open stream:
"\google\appengine\ext\cloud_storage_streams\CloudStorageStreamWrapper::stream_open"
call failed in /base ...
What does i need for authenticate my simple PHP page on GAE for access data
on GS ??
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.