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: 146
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
Last edited by kinerity on Tue Mar 26, 2019 11:23 am, edited 2 times in total.
Reason: Marked as solved per OP.

Post Reply

Return to “[3.2.x] Convertors”