inet_ntop

Converting from other board software? Good decision! Need help? Have a question about a convertor? Wish to offer a convertor package? Post here.
Post Reply
Exabot
Translator
Posts: 136
Joined: Sun Jan 18, 2015 8:21 pm
Location: Estonia

inet_ntop

Post by Exabot » Fri Mar 08, 2019 12:39 pm

How to repair/change/modernize inet_ntop code?
Original:

Code: Select all

function df_decode_ip($ip) {
	global $convert_row;
	
	if (!$ip) { return '0.0.0.0'; }
	
	$ip = inet_ntop(substr($ip, 0, 4));
	
	return $ip;
	
}
Error 1.PNG
ip4

Post Reply

Return to “[3.2.x] Convertors”

Who is online

Users browsing this forum: No registered users and 4 guests