Writing files in Google Cloud using PHP
<p>So I am trying to write a PPT file using PHP in my Google Cloud App Engine.</p>

<p>The final code to write the file is</p>

<pre><code>$xmlWriter = IOFactory::createWriter($phpPresentation, "PowerPoint2007");
$xmlWriter-&gt;save("php://output");
</code></pre>

<p>It is workng in my Localhost but when I deploy it to google cloud it gives the error <code>ERR_INVALID_RESPONSE</code> in google chrome and <code>File Not Found</code> in mozilla firefox.</p>

<p>When i accessed the logs it says</p>

<pre><code>PHP Fatal error:  Uncaught exception 'Exception' with message 'Could not close zip file vfs://root/temp/.//phppttmp569a45e921e8a8.63056743.' in /base/data/home/apps/s~frrolefrontend/mediascout:ms-080.390023055217794078/mediascout/ppt_export/src/PhpPresentation/Writer/PowerPoint2007.php:320
Stack trace:
#0 /base/data/home/apps/s~frrolefrontend/mediascout:ms-080.390023055217794078/mediascout/ppt_export/samples/Sample_Header.php(72): PhpOffice\PhpPresentation\Writer\PowerPoint2007-&gt;save('php://output')
#1 /base/data/home/apps/s~frrolefrontend/mediascout:ms-080.390023055217794078/mediascout/ppt_export/samples/scout_temp.php(381): write(Object(PhpOffice\PhpPresentation\PhpPresentation), 'scout_temp', Array)
#2 {main}
  thrown in /base/data/home/apps/s~frrolefrontend/mediascout:ms-080.390023055217794078/mediascout/ppt_export/src/PhpPresentation/Writer/PowerPoint2007.php on line 320
</code></pre>

<p>After doing some research i found that <code>Uncaught exception 'Exception' with message 'Could not close zip file</code> is because the directory is not writable.</p>

<p>Can you tell me how can i make a directory in App Engine Writable?</p>