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?
define('COOKIELOCAL', str_replace('\\', '/', realpath('./')).'/');
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?
In other words what I need is to save the temp files created using this path in the 'tmp' folder instead the root one?