<!--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);?>
Copy after login
当我用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
Copy after login
当我在命令行下用/usr/local/php a.php 执行的时候,结果显示:
HTML code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Building target platforms: i686--linuxBuilding for target i686--linuxProcessing files: VTCUAL06.06C.P010-R1.0-P1Finding 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
Copy after login
也就是说在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
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn