exwc,system,passthru,shell_wxwc讲解
php提供4种方法执行系统外部命令:exec()、passthru()、system()、 shell_exec()。 disable_functions= 如果“disable_functions=”后面有接上面四个函数,将其删除。 方法一:exec() functionexec(string$command,array[optional]$output,int[optional]$return_value) php代码:
执行结果: test.php Array([0]=>index.php[1]=>test.php) 知识点: 方法二:passthru() functionpassthru(string$command,255);">代码:
index.phptest.php 知识点: 方法三:system() functionsystem(string$command,255);">代码:
binbootcgroupdevetchomeliblost+foundmediamntoptprocrootsbinselinuxsrvsystmpusrvar 知识点: 方法四:反撇号`和shell_exec()
/var/www/html (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |