i m sorry im newbie here,.. so i want to ask about, how to get the IP from the server,. . first i user PEAR2 to get an api from Mikrotik, then i want to get an IP for making a log, to log what an IP that Connect or Dissconnect from the network itself... the reason why i make the log from PEAR2, i want to make a notification android based, that if the client from the mikrotik's is disconnect or connect, it will send a notif to an android apps.. . in those case PHP i use this script,
echo $server_ip = gethostbyname($_SERVER['SERVER_NAME']);
?> is this a correct..?
. many thanks for you all. im sorry for My bad English