Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1690655
  • 博文数量: 362
  • 博客积分: 10587
  • 博客等级: 上将
  • 技术积分: 4098
  • 用 户 组: 普通用户
  • 注册时间: 2009-09-10 18:15
文章分类

全部博文(362)

文章存档

2014年(1)

2013年(58)

2011年(115)

2010年(112)

2009年(76)

分类: 系统运维

2011-08-15 19:22:52

1、exec函数

  

  $test = "ls /tmp/test";   //ls是linux下的查目录,文件的linux命令

  exec($test,$array);       //执行命令

  print_r($array);

  ?>

2、system函数调用linux系统命令

  

  $test = "ls /tmp/test";

  $last = system($test);

  print "last: $last\n";

  ?>

阅读(1094) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~