proszę pilnie mi to potrzebne nigdzie niestety nie znalazłem
http://www.kitek.pl/2008/02/22/fotkastatus/ tutaj coś takiego znalazłem lecz nie umiem sobie z tym poradzić



public function get_xml() { $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, 'www.fotka.pl/profil/'.$this->login); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1'); $this->xml = curl_exec($curl); curl_close($curl); }
$im = imagecreatetruecolor($len, 29); $white = imagecolorallocate($im, 255, 255, 255); $kolor = imagecolorallocate($im,$kolory[$gwiazda][0], $kolory[$gwiazda][1],$kolory[$gwiazda][2]); imagefill($im,0,0,$white); imagettftext($im, 12, 0, 19, 20, $kolor, $this->font, $this->login.'.fotka.pl'); imagecopy($im,$obrazek,0,6,0,0,16,16); imagedestroy($obrazek); if($gwiazda > 0) { $gwiazda_img = imagecreatefromgif("gwiazdy.5.gif"); $tmp=imagecreatetruecolor(16,16); imagefill($tmp,0,0,$white); imagecopy($tmp,$gwiazda_img,0,0,$x,$y,16,16); imagedestroy($gwiazda_img); imagecopy($im,$tmp,$len-16,7,0,0,16,16); imagedestroy($tmp); } ImageGif($im); ImageDestroy($im);
public function parse_xml() { $xml_parser = xml_parser_create('UTF-8'); xml_parser_set_option($xml_parser, XML_OPTION_CASE_FOLDING, 0); xml_parser_set_option($xml_parser, XML_OPTION_SKIP_WHITE, 1); xml_parse_into_struct ($xml_parser, $this-xml, $vals, $index); xml_parser_free ($xml_parser); $params = array(); $ptrs[0] = & $params; foreach ($vals as $xml_elem) { $level = $xml_elem['level'] - 1; switch ($xml_elem['type']) { case 'open' $tag_or_id = $xml_elem['tag']; $ptrs[$level][$tag_or_id] = array (); $ptrs[$level+1] = & $ptrs[$level][$tag_or_id]; if(array_key_exists('attributes', $xml_elem)) { $ptrs[$level][$tag_or_id]['attributes'] = $xml_elem['attributes']; } break; case 'complete' if(isset ($xml_elem['value'])) { $ptrs[$level][$xml_elem['tag']]['value'] = $xml_elem['value']; } else { $ptrs[$level][$xml_elem['tag']] = ''; } if(array_key_exists('attributes', $xml_elem)) { $ptrs[$level][$xml_elem['tag']]['attributes'] = $xml_elem['attributes']; } break; } } if(!empty($params)) { $this-xml_array = $params; } }