I am looking at my old test setup on Centos6, and the tempdir is set to:
main.inc.php:$rcmail_config['temp_dir'] = '${_tmppath}';
I can't find where the variable tmppath is defined though at a guess it is some Centos apache or php default temp path?
I see that the main.inc.php is gone and the format now is:
config.inc.php:$config['temp_dir'] = '<your temp directory here>';
So I tried:
config.inc.php:$config['temp_dir'] = '${_tmppath}';
And of course this did not work. I was not supprised.
How might I figure out how tmppath is defined, or where is a better place for temp files than under /usr/share? Like /tmp/?
thanks
The defaults.inc.php file (which I assume represents the settings if they are not modified by your config.inc.php) does have a "temp" folder statement.
$config['temp_dir'] = RCUBE_INSTALL_PATH . 'temp/';
The "RCUBE_INSTALL_PATH" part is kind of weird since it's not a variable? Not too sure...
Mine does point to the root install folder where I have a temp folder. On 10/14/2014 12:33 AM, Robert Moskowitz wrote:
I am looking at my old test setup on Centos6, and the tempdir is set to:
main.inc.php:$rcmail_config['temp_dir'] = '${_tmppath}';
I can't find where the variable tmppath is defined though at a guess it is some Centos apache or php default temp path?
I see that the main.inc.php is gone and the format now is:
config.inc.php:$config['temp_dir'] = '<your temp directory here>';
So I tried:
config.inc.php:$config['temp_dir'] = '${_tmppath}';
And of course this did not work. I was not supprised.
How might I figure out how tmppath is defined, or where is a better place for temp files than under /usr/share? Like /tmp/?
thanks
Roundcube Users mailing list users@lists.roundcube.net http://lists.roundcube.net/mailman/listinfo/users
On 14/10/14 3:49 PM, admin wrote:
The defaults.inc.php file (which I assume represents the settings if they are not modified by your config.inc.php) does have a "temp" folder statement.
$config['temp_dir'] = RCUBE_INSTALL_PATH . 'temp/';
The "RCUBE_INSTALL_PATH" part is kind of weird since it's not a variable? Not too sure...
It's a constant. E.g.:
<?php define('SOMETHING','PHP'); echo SOMETHING . " is good!" ?>
Outputs "PHP is good!"
You can define but not change constants, and they're global and always in scope (you don't have to use 'global' or $_GLOBALS to access them).
Ben.
Mine does point to the root install folder where I have a temp folder. On 10/14/2014 12:33 AM, Robert Moskowitz wrote:
I am looking at my old test setup on Centos6, and the tempdir is set to:
main.inc.php:$rcmail_config['temp_dir'] = '${_tmppath}';
I can't find where the variable tmppath is defined though at a guess it is some Centos apache or php default temp path?
I see that the main.inc.php is gone and the format now is:
config.inc.php:$config['temp_dir'] = '<your temp directory here>';
So I tried:
config.inc.php:$config['temp_dir'] = '${_tmppath}';
And of course this did not work. I was not supprised.
How might I figure out how tmppath is defined, or where is a better place for temp files than under /usr/share? Like /tmp/?
thanks
Roundcube Users mailing list users@lists.roundcube.net http://lists.roundcube.net/mailman/listinfo/users
Roundcube Users mailing list users@lists.roundcube.net http://lists.roundcube.net/mailman/listinfo/users