webmasters help needed

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    webmasters help needed

    PHP Code:
    <?
    extract($_REQUEST);
    ?>
    <?php
    $feed 
    "http://feeds.net.hr/c/33283/f/564662/index.rss";
    $fp = @fopen($feed,"r");
    if(!
    $fp)
    {
    echo
    "Cannot Connect<br/>";
    echo
    "Try Again Later<br/>";
    } else
    {
    while(!
    feof($fp)) $raw .= @fgets($fp4096);
    fclose($fp);
    if( 
    eregi("<item>(.*)</item>"$raw$rawitems ) ) {
    $items explode("<item>"$rawitems[0]);

    $p 3;
    if (
    $npage == "")$npage "1";
    $countfilecount($items);
    $countfile=$countfile-2;
    $first=($npage*$p)-$p;
    $npages ceil($countfile $p);

    $next_arrays=($first+($p-1));
    if(
    $next_arrays>$countfile)$next_arrays=$countfile;
    for (
    $i=($first); $i <= $next_arrays$i++) {
    eregi("<title>(.*)</title>",$items[$i+1], $title );
    eregi("<link>(.*)</link>",$items[$i+1], $url );
    eregi("<description>(.*)</description>",$items[$i+1], $description);

    #$title[1] = str_replace("'", "", $title[1]);
    $title[1] = str_replace("&amp;""&"$title[1]);
    $title[1] = str_replace("&lt;""<"$title[1]);
    $title[1] = str_replace("&gt;"">"$title[1]);
    $title[1] = str_replace("<![CDATA["""$title[1]);
    $title[1] = str_replace("]]>"""$title[1]);

    $description[1] = str_replace("&amp;""&"$description[1]);
    $description[1] = str_replace("&lt;""<"$description[1]);
    $description[1] = str_replace("&gt;"">"$description[1]);
    $description[1] = str_replace("'""'"$description[1]);
    $description[1] = str_replace("<![CDATA["""$description[1]);
    $description[1] = str_replace("]]>"""$description[1]);
    $url[1] = str_replace("<![CDATA["""$url[1]);
    $url[1] = str_replace("]]>"""$url[1]);
    $url[1] = str_replace("<![CDATA["""$url[1]);


    echo 
    "<h1>$title[1]</h1>";
    echo 
    "<div class=\"text\">$description[1]</div><br/>";
    echo 
    "<br/>----<br/>";
    Here is the code of rss taken from another portal,displaying title of feed and description.my problem is how to code in this to show picture from related feed and clickable title that when you click title goest to feed site to read complete feed text.if anybody have some idea how to do it plese suggest.tnx
Working...
X