PHP API =follow=1
Posted: Sat Dec 08, 2012 10:39 am
according to this topic http://forum.mikrotik.com/viewtopic.php?f=2&t=34792 i want to run the following code in php
but php will not pass the last line of
also i tried async request in the newer php class
it has same problem . the last line will not finish . i want an always running code and use the data received from router .
each time something adds or removes from specified address-lists the script should do the same in another router in near realtime
Code: Select all
/ip/firewall/address-list/print
=follow=1
.tag=adr
Code: Select all
$API->write('/ip/firewall/address-list/print', false);
$API->write("=follow=1", false);
$API->write('.tag=adr');
$API->read(true);
Code: Select all
$addRequest = new Request('/ip/firewall/address-list/print');
$addRequest->setArgument('follow', '1');
$addRequest->setTag('adr');
$client->sendAsync($addRequest);
each time something adds or removes from specified address-lists the script should do the same in another router in near realtime