function revokehostid() { @unlink("/etc/artica-postfix/settings/Daemons/HOSTID"); echo "Old hostid as been removed, create a new one...\n"; $net = new netagent(); $hostid = $net->hostid(); echo "new hostid is : {$hostid} -> send status\n"; $net->ping(); }