RSS Feeds and image extraction indepth
问题 I have spent time trying to solve this problem and this is as far as ive got. basically im trying to pull images from rss feeds. i use magpie to process the feeds as shown below.. this snippet is within a class function getImagesUrl($str) { $a = array(); $pos = 0; $topos; $init = 1; while($init) { $pos = strpos($str, "img", $pos); if($pos != FALSE) { $topos = strpos($str, ">", $pos); $imagetag = substr($str, $pos, ($topos - $pos)); $url = $this->getImageUrl($imagetag); $pos = $topos; array