$value)
{
$content = str_replace($key, $value, $content);
}
$fp = @ fopen($path, 'w');
if (!$fp)
{
echo 'Your script doesn\'t have write access to the config directory
('.str_replace('\\', '/', realpath($path)).')
You probably do not have write access on Dokeos root directory,
i.e. you should CHMOD 777 or 755 or 775.
Your problems can be related on two possible causes: