这上程序那块有问题?
<html><body>
<?php
function get_server_info($host,$community,$objectid)
{
$a = snmpget($host,$community,$objectid);
$tmp = explode ( ":" , $a < 鸟哥的linux私房菜/span>);
if ( count ( $tmp ) > 1) {
$a = trim( $tmp );
}
return $a ;
}
$host = "192.16.1.219" ;
$community = "public" ;
//获取$host服务器的1分钟均匀负载
$load1 = get_snmp_server( $host , $community , ".1.3.6.1.4.1.2021.10.1.3.1" );
?>
</body>
</html>
为什么提示:Parse error: syntax error, unexpected '>' in /usr/local/apache2/htdocs/info.php on line 7
请高手指点。谢谢。 上个输入错了,应该是这代码。麻烦看看怎么完善
function get_server_info($host, $community, $objectid) {
$a = snmpget($host, $community, $objectid);
$tmp = explode(":", $a);
if (count($tmp) > 1) {
$a = trim($tmp);
}
return $a;
}
$host="192.168.1.11";
$community="public155";
//获取$host服务器的1分钟平均负载
$load1 = get_snmp_server($host,$community,".1.3.6.1.4.1.2021.10.1.3.1") ;
$a < 鸟哥的linux私房菜/span>这是啥,先看书吧 基础太薄弱了,,
页:
[1]