%s %s %s %s '; /* %s %s %s %s '; $FOOTER = ' '; $ereg = '/
' . '\s+

' . '\s+<\/a>' . '\s+<\/p>' . '\s+

' . '\s+Illustration par (.+?) ?<\/strong> - (.+?)<\/a>
(.+?)<\/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('

' .'' .'

' .'

' .'Illustration par '.$matches[3][$i].' - '.$matches[5][$i].'
'.$matches[7][$i].'' .'

' ), 'http://www.viedemerde.fr/'.$matches[1][$i], $matches[3][$i] ); } $output .= $FOOTER; echo $output; ?>