user_dir = ; 告知 php 在使用 /~username 打开脚本时到哪个目录下去找,仅在非空时有效.
safe_mode下可用函数
dbmopen()  
dbase_open() 
filepro() 
filepro_rowcount() 
filepro_retrieve() 
ifx_*() 
ingres_*() 
mysql_*() 
pg_loimport() 
posix_mkfifo() 
putenv() 
the documentation on putenv() 
move_uploaded_file() 
chdir() 
dl() 
shell_exec() 
exec() 
system() 
passthru() 
popen() 
mkdir() 
rmdir()  
rename() 
unlink() 
copy() 
chown() 
chmod() 
touch() 
link() 
getallheaders() 
header() 
highlight_file(),
 show_source()  
parse_ini_file()  
另:关于权限的问题
   read(r)    write(w)    execute(x)
     |          |      |
  读1    写2     执行4
最大权限设置   0        7    7    7
            owner(文件所有者) group  other user
浅妄薄见,望与斟酌