Search found 6 matches

by ph4nt4zm
Mon Nov 14, 2005 4:08 pm
Forum: PHP - Code
Topic: Big Problem with the code!
Replies: 12
Views: 1340

Thanks Guys.
Made it.

Case closed!
by ph4nt4zm
Mon Nov 14, 2005 4:02 pm
Forum: PHP - Code
Topic: Big Problem with the code!
Replies: 12
Views: 1340

I'm interested in inputing the Long IP Number (long2ip) and resulting the IP Adress.

For Example: I want to know Long IP Number: 0201327359 what is the IP adress?

Thanks alot.
by ph4nt4zm
Mon Nov 14, 2005 3:21 pm
Forum: PHP - Code
Topic: Big Problem with the code!
Replies: 12
Views: 1340

Do as I said, test the function, then tell us if it doesn't work. :) OK :) This is how I entered it on my index.php let's say page: <?php function Dot2LongIP ($IPaddr) { if ($IPaddr == "") { return 0; } else { $ips = explode('.', $IPaddr); return ($ips[3] + $ips[2] * 256 + $ips[1] * 65536...
by ph4nt4zm
Mon Nov 14, 2005 3:17 pm
Forum: PHP - Code
Topic: Big Problem with the code!
Replies: 12
Views: 1340

wtf wrote:What are you trying to achieve with this code? Why are you using it? For what purpose?

I Just want to make it work, it's a simple code but I am stupid and I can't make it work, Appreciate all help given, THX!~
by ph4nt4zm
Mon Nov 14, 2005 3:04 pm
Forum: PHP - Code
Topic: Big Problem with the code!
Replies: 12
Views: 1340

I don't know much about PHP scripting. This is the code that a friend gaved me and I just want to make it work for my website, so' please, if you are kind to tell me the right final code.

Thanks.
by ph4nt4zm
Mon Nov 14, 2005 2:53 pm
Forum: PHP - Code
Topic: Big Problem with the code!
Replies: 12
Views: 1340

Big Problem with the code!

I need help solving this code:

Code: Select all

function Dot2LongIP ($IPaddr)
{
if ($IPaddr == "") {
return 0;
} else {
$ips = split ("\.", "$IPaddr");
return ($ips[3] + $ips[2] * 256 + $ips[1] * 65536 + $ips[0]
*16777216); }
}

Thank you so' much.