这样的功能能实现吗?该怎么解决

WBOY
Release: 2016-06-13 10:03:06
Original
818 people have browsed it

这样的功能能实现吗?
需求:
提供一个文本框,让用户能够输入ping的命令,然后在页面上时时显示ping的结果,这种功能能实现吗?

------解决方案--------------------

//var_dump($out);
echo sizeof($out);
for($i=0;$i echo $out[$i]. "
";
}
?>
以上代码本人已进行测试,你可以设计一个文本框,用一变量获取文本框内容,然后替换 'ping 192.168.0.1 '就可以了

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!