标签: javascript php geolocation leaflet gis
我正在研究项目的Web映射结束,我正在使用js的Leaflet,我需要ping主机,并在Leaflet弹出窗口上显示结果,我的意思是,当主机关闭时,会弹出Leaflet弹出窗口。 在Google
<?php $str=exec("ping -n 1 -w1 $ip,$res,$rev); if $rev==0{ echo ("up"); } else { echo ("Down"); ?>
感谢您的帮助。