Share » Forums » Install & configuration » Cannot setup ezpublish on my host...

Cannot setup ezpublish on my host (Windows based server)

Cannot setup ezpublish on my host (Windows based server)

Wednesday 26 January 2005 1:08:29 pm - 3 replies

Author Message

Nick Wang

Thursday 27 January 2005 10:04:24 am

check the code ezdir.php. Should the line
$tmpfname = $dir . eZSys::fileSeparator() . "ezsetup_" . md5( microtime() ) . ".tmp";

be

$tmpfname = $dirname . eZSys::fileSeparator() . "ezsetup_" . md5( microtime() ) . ".tmp";

?

/*!
\static
Check if a given directory is writeable

\return TRUE/FALSE
*/
function isWriteable( $dirname )
{
if ( eZSys::osType() != 'win32' )
return is_writable( $dirname );

/* PHP function is_writable() doesn't work correctly on Windows NT descendants.
* So we have to use the following hack on those OSes.
* FIXME: maybe on Win9x we shouldn't do this?
*/
// try to create temporary file
$tmpfname = $dir . eZSys::fileSeparator() . "ezsetup_" . md5( microtime() ) . ".tmp";
if ( !( $fp = @fopen( $tmpfname, "w" ) ) )
return FALSE;

fclose( $fp );
unlink( $tmpfname );

return TRUE;
}
}

Frederik Holljen

Thursday 27 January 2005 10:32:27 am

Does this fix help you in any way?

Nick Wang

Thursday 27 January 2005 11:26:42 am

Yes, I passed the permission test after I modified the code as above.

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu