Сбор цитат с главной страницы сайта bash.org.ru
Код простой и думаю не нуждается в комментариях.
<?php
$file = file_get_contents('http://www.bash.org.ru/');
$grab = preg_match_all('|<div>(.+)</div>|U', $file, $quotes);
for ($i = 0; $i < count($quotes[1]); $i++)
{
?>
<div style="background:#f3f3f3; border:1px dotted #999999;margin-bottom:10px;">
<?=$quotes[1][$i]?>
</div>
<?php
}
?>
Теги:
quotes,
f3f3f3,
border,
dotted,
bottom,
margin,
background,
count,
комментариях,
нуждается,
contents,
match,
думаю,
style
Комментарии:
Нету комментариев для вывода...