|
|
|
|
<?php
$limit=$HTTP_GET_VARS["limit"];
$limit = split(";",$limit);
if ($limit[0]<=0) $limit[0]=1;
if ($limit[1]==0) $limit[1]=999999;
$s1= " <td width=100% align=\"left\" valign=\"top\" bgcolor=#f8f8f8> <a class=target href=\"mailto:";
$s2= "</a></td>";
$t = "\">";
$file_c = "http://site/";
for ($i=$limit[0]; $i<=$limit[1]; $i++ )
{ $file = $file_c.$i;
$f=file($file);
$str = $f[159];
$str=str_replace($s1,"",$str);
$str=str_replace($s2,"",$str);
$str=split($t,$str);
echo "<b>".$i."</b> ".$str[0]."<br>";
}
?>
|
Я начал не понимать с строки
Есть ли у кого подобные скрипты.
Цель выцепить почтовые адреса чтобы не ходить по ссылкам. | |
|
|
|
|
|
|
|
для: LINKIN
(13.01.2008 в 13:53)
| | <?php
$limit=$HTTP_GET_VARS["limit"];
$limit = split(";",$limit);
if ($limit[0]<=0) $limit[0]=1;
if ($limit[1]==0) $limit[1]=999999;
$s1= " <td width=100% align=\"left\" valign=\"top\" bgcolor=#f8f8f8> <a class=target href=\"mailto:";
$s2= "</a></td>";
$t = "\">";
$file_c = "http://site/";
for ($i=$limit[0]; $i<=$limit[1]; $i++ )
{ $file = $file_c.$i;
$f=file_get_contents($file)
if (preg_match_all("|[0-9a-z_]+@[0-9a-z_^\.]+\.[a-z]{2,3}|i", $f, $array))
{
for ($x=0; x<count($array); $x++)
{
for($y=0; $y>count($array[$x] ); $y++)
echo "\$array[x][y]:".array[$x][$y]."<br />\n";
}
}
/*
$f=file($file);
$str = $f[159];
$str=str_replace($s1,"",$str);
$str=str_replace($s2,"",$str);
$str=split($t,$str);
echo "<b>".$i."</b> ".$str[0]."<br>";
}
*/
?> | |
|
|
|
|
|
|
|
для: LINKIN
(25.01.2008 в 14:13)
| | Так что. | |
|
|
|
|
|
|
|
для: LINKIN
(25.01.2008 в 14:13)
| | Так что. | |
|
|
|
|
|
|
|
для: LINKIN
(25.01.2008 в 14:13)
| |
if (preg_match_all("|[0-9a-z_]+@[0-9a-z_^\.]+\.[a-z]{2,3}|i", $f, $array)) print_r($array);
|
| |
|
|
|
|
|
|
|
для: Петр
(06.02.2008 в 10:16)
| | >b]^[/b]
Это зачем?
>{2,3}
Домен первого уровня может содержать и более трех символов. | |
|
|
|
|
|
|
|
для: Петр
(06.02.2008 в 10:16)
| | <?php
$limit=$HTTP_GET_VARS["limit"];
$limit = split(";",$limit);
if ($limit[0]<=0) $limit[0]=1;
if ($limit[1]==0) $limit[1]=999999;
$s1= " <td width=100% align=\"left\" valign=\"top\" bgcolor=#f8f8f8> <a class=target href=\"mailto:";
$s2= "</a></td>";
$t = "\">";
$file_c = "http://marta.com.ua/page/guestbook/";
for ($i=$limit[0]; $i<=$limit[1]; $i++ )
{ $file = $file_c.$i;
$f=file_get_contents($file)
if (preg_match_all("|[0-9a-z_]+@[0-9a-z_\.]+\.[a-z]{2,3}|i", $f, $array)) print_r($array);
{
for ($x=0; x<count($array); $x++)
{
for($y=0; $y>count($array[$x] ); $y++)
echo "\$array[x][y]:".array[$x][$y]."<br />\n";
}
}
/*
$f=file($file);
$str = $f[159];
$str=str_replace($s1,"",$str);
$str=str_replace($s2,"",$str);
$str=split($t,$str);
echo "<b>".$i."</b> ".$str[0]."<br>";
}
*/
?>
так все равно не работает | |
|
|
|
|
|
|
|
для: LINKIN
(07.02.2008 в 13:58)
| | >if (preg_match_all("|[0-9a-z_]+@[0-9a-z_\.]+\.[a-z]{2,3}|i", $f, $array)) print_r($array);
Синтаксис не правильный.
Зачем Вы поставили ; в конце. | |
|
|
|
|
|
|
|
для: Faraon
(07.02.2008 в 21:27)
| | Вообще убрать надо эту "print_r($array);".
Или "{" перенести..
PS а вот после "$f=file_get_contents($file) " точки с запятой не хватает.. | |
|
|
|
|
|
|
|
для: kasmanaft
(07.02.2008 в 22:23)
| | <?php
$limit=$HTTP_GET_VARS["limit"];
$limit = split(";",$limit);
if ($limit[0]<=0) $limit[0]=1;
if ($limit[1]==0) $limit[1]=85;
$s1= " <td width=100% align=\"left\" valign=\"top\" bgcolor=#f8f8f8> <a class=target href=\"mailto:";
$s2= "</a></td>";
$t = "\">";
$file_c = "http://site";
for ($i=$limit[0]; $i<=$limit[1]; $i++)
{ $file = $file_c.$i;
$f=file_get_contents($file);
if (preg_match_all("|[0-9a-z_]+@[0-9a-z_^\.]+\.[a-z]{2,3}|i", $f, $array))
{
for ($x=0; $x< count( $array ); $x++)
{
for($y=0; $y< count( $array[$x] ); $y++)
print "\$array[$x][$y]:" .$array[$x][$y]. "<br>\n";
}
}
}
/*
$f=file($file);
$str = $f[159];
$str=str_replace($s1,"",$str);
$str=str_replace($s2,"",$str);
$str=split($t,$str);
echo "<b>".$i."</b> ".$str[0]."<br>";
*/
?> | |
|
|
|
|
|
|
|
для: kasmanaft
(07.02.2008 в 22:23)
| | <?php
$limit=$HTTP_GET_VARS["limit"];
$limit = split(";",$limit);
if ($limit[0]<=0) $limit[0]=1;
if ($limit[1]==0) $limit[1]=85;
$s1= " <td width=100% align=\"left\" valign=\"top\" bgcolor=#f8f8f8> <a class=target href=\"mailto:";
$s2= "</a></td>";
$t = "\">";
$file_c = "http://site";
for ($i=$limit[0]; $i<=$limit[1]; $i++)
{ $file = $file_c.$i;
$f=file_get_contents($file);
if (preg_match_all("|[0-9a-z_]+@[0-9a-z_^\.]+\.[a-z]{2,3}|i", $f, $array))
{
for ($x=0; $x< count( $array ); $x++)
{
for($y=0; $y< count( $array[$x] ); $y++)
print "\$array[$x][$y]:" .$array[$x][$y]. "<br>\n";
}
}
}
/*
$f=file($file);
$str = $f[159];
$str=str_replace($s1,"",$str);
$str=str_replace($s2,"",$str);
$str=split($t,$str);
echo "<b>".$i."</b> ".$str[0]."<br>";
*/
?> | |
|
|
|
|
|
|
|
для: LINKIN
(17.02.2008 в 09:37)
| | Всё работает? | |
|
|
|
|
|
|
|
для: kasmanaft
(17.02.2008 в 15:53)
| | не работает вообще | |
|
|
|