PHP API write question
Posted: Wed Nov 26, 2008 3:37 pm
Hello
I am trying a PHP API class. works great. i can read all, but how to write?
For example how to set IP address on certain interface ?
I tried
as well as
and everytime i am getting response
>>> [24, 8] =message=no such command
any hint ?
I am trying a PHP API class. works great. i can read all, but how to write?
For example how to set IP address on certain interface ?
I tried
Code: Select all
$API->write('/ip/address/add=address=6.6.6.6=netmask=255.255.255.0=interface=bridge_hotspot');
Code: Select all
$API->write('/ip/address/add');
$API->write('=address=6.6.6.6');
$API->write('=netmask=255.255.255.0');
$API->write('=interface=bridge_hotspot');
>>> [24, 8] =message=no such command
any hint ?