title: How to use the php define properly
body: <p>I have this line of php code that sets the main folder of my site as the storage folder. How can I change this to the 'tmp' folder?</p>
  
  <pre><code>define('COOKIELOCAL', str_replace('\\', '/', realpath('./')).'/');
  </code></pre>
  
  <p>For example mysite.com, I want the files stay in mysite.com/tmp so I can clear this folder using a cron tab, any tips?</p>
  
  <p>In other words what I need is to save the temp files created using this path in the 'tmp' folder instead the root one?</p>