0

App Engine applications can be implemented using the PHP original runtime now. (see Get started with App Engine for PHP - scalable, secure and reliable on Google Cloud Platform Blog (16 May 2013).

It seems that the PHP process on Google App Engine does not have enough permissions to create folders. According to their documentation, the built-in stream handler ftp() is not supported too.

Is the GAE file system read-only? What possibilities do we have?

hakre
  • 193,403
  • 52
  • 435
  • 836
mate64
  • 9,876
  • 17
  • 64
  • 96
  • possible duplicate of: [Does Google App Engine allow creation of files and folders on the server?](http://stackoverflow.com/q/2693081/367456) - Please use the search before you ask a question. Thank you! – hakre May 21 '13 at 11:09

1 Answers1

4

You should write to Google Cloud Storage, rather than trying to write to a local file system.

https://developers.google.com/appengine/docs/php/googlestorage/overview

This can use the regular file functions, here's one of their basic examples.

$fp = fopen("gs://my_bucket/some_file.txt", "w");
fwrite($fp, "Hello");
fclose($fp);
salathe
  • 51,324
  • 12
  • 104
  • 132