[ create a new paste ] login | about

Link: http://codepad.org/FWamiucA    [ raw code | output | fork ]

PHP, pasted on Jan 13:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php

$ip=$_SERVER[REMOTE_ADDR];

for($i=0;$i<=strlen($ip);$i++)
{
$ip=str_replace($i,ord($i),$ip);
}

$ip=str_replace(".","",$ip);

$ip=substr($ip,0,10);

$answer=$ip*2;
$answer=$ip/2;
$answer=str_replace(".","",$answer);

echo $answer
?>


Output:
1
0


Create a new paste based on this one


Comments: