On Mon, Oct 6, 2014 at 8:28 AM, Jørgen Ryeng Antonsen < [email protected]> wrote:
> > Trying to get a complette list of files in a ftp directory. > > $contents = ftp_nlist($conn_id, ""); > > PHP Warning: ftp_nlist(): Unable to create temporary file. Check > permissions in temporary files directory > Is it not possible to use this command in GAE? > You can use this command on GAE, the problem is that ftp_nlist is attempting to write to GAE's local storage, which is not allowed. What you can try to do is inform it to use a temporary directory within Google Cloud Storage by setting the the temp dir environment variable: putenv(‘TMPDIR=gs://bucket_name_to_write_temporary_files_to/’); //you can also declare a subdirectory if you want. Call this before you attempt any ftp operations. ----------------- -Vinny P Technology & Media Consultant Chicago, IL App Engine Code Samples: http://www.learntogoogleit.com -- 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/d/optout.
