This is my function http://www.ideone.com/slpPe
If i don't use function
preg_match_all("{http://[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}[^\s\"\\\'\<&]*}ix", $html, $marches);
$download = $marches[0];
//var_dump();
$i = 0;
for ($i; $i <= count($download); $i++) {
echo "download|";
$links = $download[$i];
if (!eregi("avaxhome.ws|pixhost.info", $links)) {
echo $links . "<br/>";
}
}
and return some link
download|
http://www.filesonic.com/file/24394419/1851684883.rar
http://depositfiles.com/files/g6wawevha
Please help me fix it