new install problem

Dave

new install problem

Posted:09 Sep 2007 (20:18 UTC)
Anonymous

Re: new install problem

Posted:11 Sep 2007 (18:36 UTC)
OK perhaps a bit more info is in order:

This code is generating the following errors:

function getTempDir() {
static $tempdir;
if (!$tempdir) {
global $gTempDir;
if( !empty( $gTempDir ) ) {
$tempdir = $gTempDir;
} else {
if (!isWindows()) {
$tempfile = tempnam(((@ini_get('safe_mode'))
? ($_SERVERDOCUMENT_ROOT>'DOCUMENT_ROOT' . '/temp/')
: (false)), 'foo');
$tempdir = dirname($tempfile);
@unlink($tempfile);
} else {
$tempdir = getenv("TMP");
}
}
}
return $tempdir;
}

And here are the errors I'm getting:

Warning: tempnam() function.tempnam: open_basedir restriction in effect. File() is not within the allowed path(s): (/home/user:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/user/public_html/bitweaver/kernel/preflight_inc.php on line 25

Warning: Cannot modify header information - headers already sent by (output started at /home/user/public_html/bitweaver/kernel/preflight_inc.php:25) in /home/user/public_html/bitweaver/index.php on line 49

This is running on a Linux shared server.
  Page 1 of 1  1