title: using the tmp folder on a apache
body: <p>I just pushed my website from my local development environment to my remote server and I've run into some problems. Specifically with the use of the /tmp folder. As a test I ran this </p>
  
  <pre><code>echo "the start";
  $tmp = sys_get_temp_dir();
  echo $tmp . "&lt;br/&gt;";
  echo "the end."
  </code></pre>
  
  <p>The result is only:</p>
  
  <p>"the start"</p>
  
  <p>After that the script seems to die. But it gives me no error. (Can I do something in the apache config to show me errors??)</p>
  
  <p>Anyway I first checked php.ini to see where the tmp directory is. No explicit folder is stated, so apache should be using the system default. </p>
  
  <p>I then when to this file in /var/www/ to check the permissions. The permissions here are 777 so I don't think should have any trouble writing to the tmp folder. </p>
  
  <p>And yet my problems persist. Any ideas??</p>