码迷,mamicode.com
首页 > 其他好文 > 详细

exec(), passthru(), system() etc.

时间:2015-01-28 11:13:28      阅读:145      评论:0      收藏:0      [点我收藏+]

标签:

<?php


echo ‘<pre>‘;
exec(‘ls -la‘, $result);
print_r($result);
echo ‘<hr/>‘;


$result = passthru(‘ls -la‘);
echo ‘<hr/>‘;


$result = system(‘ls -la‘);
echo ‘<hr/>‘;


echo $result = `ls -la`;
echo ‘<hr/>‘;


print_r(getenv(‘HTTP_REFERER‘));


putenv("HOME=$home");

exec(), passthru(), system() etc.

标签:

原文地址:http://blog.csdn.net/pcyph/article/details/43226695

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!