|
![](/images/resource/spacer.gif) |
|
สอบถามเรื่อง telnet , exec ของ php คับ ช่วยด้วยคับ |
|
![](/images/resource/viewboard_01.gif?v=1001) |
|
|
![](/images/resource/viewboard_03.gif?v=1001) |
![](/images/resource/viewboard_04.gif?v=1001) |
|
Code (PHP)
$telnetConn->DoCommand('ex', $result);
$telnetConn->DoCommand('ex', $result);
$telnetConn->DoCommand('copy running-config startup-config', $result);
$telnetConn->DoCommand(' ', $result);
$telnetConn->DoCommand(' ', $result);
$telnetConn->Disconnect();
Code (PHP)
exec("ping -n 1 -l 1 -w 1 -i 5 " . $array_wire_device['ip_address'], $output, $status);
มันเอาไว้ทำอะไรคับ
Tag : PHP, MySQL, HTML/CSS, Windows
![](/images/adv.jpg?v=1001)
|
|
![](/images/resource/blockviewtopic_01.gif?v=1001) |
![](/images/resource/blockviewtopic_02.gif?v=1001) |
![](/images/resource/blockviewtopic_03.gif?v=1001) |
![](/images/resource/blockviewtopic_04.gif?v=1001) |
Date :
2014-12-16 04:00:00 |
By :
peatza130 |
View :
933 |
Reply :
1 |
|
![](/images/resource/blockviewtopic_06.gif?v=1001) |
![](/images/resource/blockviewtopic_07.gif?v=1001) |
![](/images/resource/blockviewtopic_08.gif?v=1001) |
![](/images/resource/blockviewtopic_09.gif?v=1001) |
|
|
|
![](/images/resource/viewboard_06.gif?v=1001) |
![](/images/resource/viewboard_07.gif?v=1001) |
|
![](/images/resource/viewboard_08.jpg?v=1001) |
![](/images/resource/viewboard_09.gif?v=1001) |
|
|
![](/images/digitalocean-banner.jpg)
|
Load balance : Server 03
|