php执行shell脚本

来源:互联网 发布:sd卡损坏 数据恢复 编辑:程序博客网 时间:2024/05/08 18:42

//delete file


if($_POST['action']=='del')
{
      if(file_exists("/vg/_sysvols/pbx/spool/sendfax/".$_POST['delfile'] ))
      {
            shell_exec("rm /vg/_sysvols/pbx/spool/sendfax/'".$_POST['delfile']."'" );
      }
}

 

linux 下操作特殊字符的文件时需要”或者’

原创粉丝点击