IP SERVICE SET.... - API PHP
Posted: Tue Sep 05, 2017 3:39 pm
Hello guys , i have this both command -> (( /ip service set address=8.8.8.8 ssh OR -> /ip service set ssh address=8.8.8.8 ) ... and this work fine in command line.
but i try do this in two forms with API lib php.
$API->write('/ip/service/set',false);
$API->write("=address=$ips",false);
$API->write("=ssh="); // $API->write("?ssh=");
$API->read();
$API->write('/ip/service/set',false);
$API->write("=ssh=address=$ips");
$API->read();
anyone can help ? Sorry about my english.
but i try do this in two forms with API lib php.
$API->write('/ip/service/set',false);
$API->write("=address=$ips",false);
$API->write("=ssh="); // $API->write("?ssh=");
$API->read();
$API->write('/ip/service/set',false);
$API->write("=ssh=address=$ips");
$API->read();
anyone can help ? Sorry about my english.