Code: Select all
function check_access_mkdir( &$access_msg)
{
global $lang ;
// check for server mkdir access
if ( mkdir( 'EM_test_dir', 0777))
{
// clean up!
rmdir( 'EM_test_dir') ;
$access_msg = 'OK' ;
return true ;
}
else
{
$access_msg = $lang['EM_failed'] ;
return false ;
}
}