<!--
Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/
-->
$str = " /opt/rpm/bin/rpm -bb --target i686--linux /tmp/test.spec";
system($str);
?>
로그인 후 복사
当我用http://192.168.1.1/a.php 执行的时候结果显示:
HTML code
<!--
Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/
-->Building target platforms: i686--linux Building for target i686--linux Processing files: VTCUAL06.06C.P010-R1.0-P1
로그인 후 복사
当我在命令行下用/usr/local/php a.php 执行的时候,结果显示:
HTML code
<!--
Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/
-->
Building target platforms: i686--linux
Building for target i686--linux
Processing files: VTCUAL06.06C.P010-R1.0-P1
Finding Provides: (using /opt/rpm/lib/rpm/find-provides)...
Finding Requires: (using /opt/rpm/lib/rpm/find-requires)...
Wrote: /export/home/webadm/.rpm/RPMS/i686/VTCUA
로그인 후 복사
也就是说在http访问模式下有三行没有显示出来:
HTML code
<!--
Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/
-->
Finding Provides: (using /opt/rpm/lib/rpm/find-provides)...
Finding Requires: (using /opt/rpm/lib/rpm/find-requires)...
Wrote: /export/home/webadm/.rpm/RPMS/i686/VTCUA