The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
Is there a function which returns the name of the temporary directory set aside for me - the error message effectively tells me it exists!
$this->tmp_dir = '/tmp';
in default_config.php to a folder in your webspace that is writable by your scripts?
If that doesn't work then feel free to send in a ticket to support with details of where the installation is and how to reproduce the problem and they can then forward the query to me to have a look.
I have uploaded the PHP ICalendar scripts and was hoping that they would work. I do not think that in this case the sys_get_temp_dir problem is insuperable but it should be fixed.
It could be fixed by creating an environment variable TMP and removing the system wide definition of the function. Users could then successfully use the definition code you posted earlier.
Is this for your VIP or free hosted site?
Given that I know the full path name for the temporary directory I want to access how do I code this in php please
<?php
if ( !function_exists('sys_get_temp_dir')) {
function sys_get_temp_dir() {
if( $temp=getenv('TMP') ) return $temp;
if( $temp=getenv('TEMP') ) return $temp;
if( $temp=getenv('TMPDIR') ) return $temp;
$temp=tempnam(__FILE__,'');
if (file_exists($temp)) {
unlink($temp);
return dirname($temp);
}
return null;
}
}
echo realpath(sys_get_temp_dir());
?>
sys_get_temp_dir doesn't work very well in virtual host environments.
Is there a function which returns the name of the temporary directory set aside for me - the error message effectively tells me it exists!