使用php(可执行文件)获得linux脚本结果


linux script result getting using php (executable)

我想运行一个返回主机名的脚本,然后我想使用php显示该主机名。这件事我想要在exe格式,这样我就可以运行exe,并将知道的主机名的属性。这是可能的。

CPU details :
<div style="display:block;" id="uip"><input type="text" value="<?php echo $a = GetHostByName($REMOTE_ADDR);?>" /></div>
<div style="display:block;" id="uip"><input type="text" value="<?php echo gethostbyaddr('127.0.0.1');?>" /></div>
#!/usr/bin/php
<?php
echo gethostname()."'n";
?>