Can this function be implemented? How can this problem be solved?
Source: Internet
Author: User
Can this function be implemented? Requirement: provide a text box that allows you to enter the ping command and display the ping result on the page from time to time. can this function be implemented ?, & Lt ;? Phpexec (& quot; ping192.168.0.1 & quot;, $ out); // var_dump (can this function be implemented by $ ou?
Requirements:
Provides a text box that allows you to enter the ping command and display the ping result on the page from time to time. can this function be implemented?
------ Solution --------------------
// Var_dump ($ out );
Echo sizeof ($ out );
For ($ I = 0; $ I
Echo $ out [$ I]."
";
}
?>
The above code has been tested. you can design a text box, use a variable to get the content of the text box, and then replace 'ping 192.168.0.1 '.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service