why does this for loop returns null?

arifino

New Member
\[code\]<? for ($i=0; $i<=9; $i++) { $b=urlencode($cl[1][$i]); $ara = array("http://anonymouse.org/cgi-bin/anon-www.cgi/", "http%3A%2F%2Fanonymouse.org%2Fcgi-bin%2Fanon-www.cgi%2F"); $degis = array("", ""); $t = str_replace($ara, $degis, $b); $c="$t"; $base64=base64_encode($t); $y=urldecode($t); $u=base64_encode($y); $qwe = "http://anonymouse.org/cgi-bin/anon-www.cgi/$y"; $ewq = "h.php?y=$u"; $bul = ($qwe); $degistir = ($ewq); $a =str_replace($bul, $degistir, $ic);}?>\[/code\]when i put \[code\]$cl[1][0], $cl[1][1], $cl[1][2]\[/code\] works successfull but when i put \[code\]$i\[/code\] its returning null. why is this happening?**I'm trying to change EACH url to base64 codes that I received from remote url with preg_match_all **
 
Back
Top