function Dot2LongIP (IPaddr)
if (IPaddr == "")
return 0;
else
$ips = explode(".", IPaddr);
return ($ips[3] + $ips[2] * 256 + $ips[1] * 65536 + $ips[0]*16777216);
function Dot2LongIP (IPaddr)
if (IPaddr == "")
return 0;
else
$ips = explode(".", IPaddr);
return ($ips[3] + $ips[2] * 256 + $ips[1] * 65536 + $ips[0]*16777216);
Seriously? is this the whole thing? Is it part of a function? Do you have these blank lines? You said error, yet you don't say where it is. Assuming ips.
Help yourself - read the PHP forum sticky: https://www.daniweb.com/web-development/php/threads/435023/read-this-before-posting-a-question
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.