'
. '\s+ '
. '\s+Illustration par (.+?) ?<\/strong> - (.+?)<\/a> '
.'Illustration par '.$matches[3][$i].' - '.$matches[5][$i].'<\/a>'
. '\s+<\/p>'
. '\s+
(.+?)<\/a>'
. '\s+<\/p>'
. '\s+<\/div>/m';
$data = file_get_contents('http://www.viedemerde.fr/illustrations')
or die('Error : Failed fetching data.');
preg_match_all($ereg, $data, $matches);
$output = sprintf($HEADER,
'Vie de merde illustrée',
'',
date('r'),
'http://http://www.viedemerde.fr/illustrations'
);
for($i = 0 ; $i < count($matches[0]) ; $i++)
{
$output .= sprintf($ITEM,
'Vie de merde illustrée #'.$matches[1][$i],
htmlspecialchars(''
.'
'.$matches[7][$i].''
.'