QUICK NEWS

{NEW} - A new css video is up.

{OLD} - New video courtesy of Skhilled, Thanks for posting it up.

Video of the moment:


Internal Links

SMF Sites

Quick Info

Invalid in_addr value (error)

Started by Ronald, Feb 19, 2020, 09:33 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ronald

SMF 2.1 RC2

I keep getting this error:

inet_ntop(): Invalid in_addr value

Line:==>5824: $ip_address = inet_ntop($bin);

Anyone help me get rid of this darn error, it's a nuisance.

live627

Suppress the error by putting @ in front of the call

$ip_address = @inet_ntop($bin);

Ronald

Quote from: live627 on Feb 19, 2020, 04:53 PMSuppress the error by putting @ in front of the call

$ip_address = @inet_ntop($bin);

Like this
@ip_address = @inet_ntop($bin);

live627

Maybe? The single  @    I provided in my code should be enough.

Ronald

Quote from: live627 on Feb 19, 2020, 05:58 PMMaybe? The single  @    I provided in my code should be enough.

Below is what I put in.
$ip_address = @inet_ntop($bin);So far it works.
Thanks for the help.

live627