CODE (htmlphp):
скопировать код в буфер обмена
скопировать код в буфер обмена
- function horoscope ($url, $sign)
- {
- // echo "<META http-equiv=content-type content=\"text/html; charset=UTF-8\">";
- $xml=file_get_contents($url);
- $dom=new domDocument;
- $dom->loadXML($xml);
- $s_dom=simplexml_import_dom($dom);
- if ($sign==""||$sign>12) return " not sign ";
- return iconv("utf-8", "windows-1251", $s_dom->channel->item[$sign]->description);
- // return $s_dom->channel->item[$sign]->description;
- }
- ........