PHP简单实现调用系统命令

      发布在:后端技术      评论:0 条评论
<?php
header("Content-Type:text/html;charset=gbk");
echo '<pre>';
echo `dir`;
//echo `php think crud -t zhengshu -c zhengshu -u 1 -f=1`;//实际应用
echo '</pre>';

需要运行如上命令,前提是shell_exec函数未被禁用

相关文章
热门推荐