Hi!
I've worked out this code to grab stuff from a gallery website...
<?php
$content = strip_tags(implode("",file('http://ADDRESS/')),'<a><img>');
preg_match_all("/<a.?href=\"(.+?)\".?>(.+?)<\/a>/is",$content,$matches);
for ($i=0;$i<count($matches[0]);$i++) {
$txt = $matches[2][$i];
echo 'URL : '.$matches[1][$i].'<br>';
echo 'Text : '. $txt .'<br>';
preg_match("/(\d+) pics made by (.+)$/i",$txt,$out);
echo 'Pics : '. $out[1] .'<br>';
echo 'Author : '. $out[2] .'<br><br>';
}
?>
But the out array doesn't contain anything, nothing is written after "pics" and "author"...
Can you please tell me what i'm doing wrong?