Re: [google-appengine] How can i access Buckets from a Google AppEngine App

2013-11-21 Thread Vinny P
On Wed, Nov 20, 2013 at 11:02 AM, MarcoCanali wrote: > What does i need for authenticate my simple PHP page on GAE for access > data on GS ?? > > You need to tell the GCS bucket that your application is allowed access to it. I wrote up a short demonstration at http://learntogoogleit.com/post/54

[google-appengine] How can i access Buckets from a Google AppEngine App

2013-11-20 Thread MarcoCanali
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 fil