例如:
echo `whoami`;
// 导出数据库,要导入的文件夹必须要有可写权限, -u -p之后的内容必须要紧挨着写
复制代码 代码如下:echo `mysqldump -h localhost -u$DbUser -p$DbPwd --default-character-set=utf8 $DbName > /var/$dumpFileName`;
反撇号其他用法
<"<p>the server timestamp is: $result</p>"; echo "<hr color=red>"; #使用shell_exec() $result1=shell_exec("date"); echo "<p>the server timestamp is: $result1</p>"; "white-space: normal; word-spacing: 0px; text-transform: none; float: none; color: rgb(17,17,17); font: 12px/18px Tahoma, Arial, 'Microsoft YaHei', Simsun; display: inline !important; letter-spacing: normal; background-color: rgb(255,255,255); text-indent: 0px; -webkit-text-stroke-width: 0px">输出结果如下:
the server timestamp is: 当前日期: 2009/06/30 二输入新日期: (年月日)以上所述就是本文的全部内容了,希望大家能够喜欢。