RSS Feed

Pozdrav,

Napravio sam RSS Feed za moj Adult sajt, ali nesto nije uredu, to jest kad ga otvorim pojavi mi se samo ovo

http://www.pornpub.info/rss.php

Evo sta sam uradio

Napravio sam fajl rss.php
I stavio ovaj code

    <? header('Content-type: text/xml'); ?>
    <? echo "<?";?>xml version="1.0" encoding="UTF-8"<? echo "?>";?>

    <rss version="2.0">
    <channel>
        <title>PornPub Rss Feed</title>
        <link>http://www.pornpub.info</link>
        <description>PornPub - Best Porn Videos from Biggest Porn Tube Sites!</description>
        <language>en-us</language>
    <?php
    include("includes/config.php");
    ?>
    <?
    $sql = "SELECT id, title, description, thumb FROM videos ORDER by id DESC LIMIT 25";
    $result = mysql_query($sql) or die(mysql_error());
    while($row = mysql_fetch_assoc($result)){
    ?>
    <item>
         <title><?=$row['title']; ?></title>
         <link>http://www.pornpub.info/video/<?=$row['id']."/".str_replace(" ","-",trim($row['title']))?></link>
         <guid>http://www.pornpub.info/video/<?=$row['id']."/".str_replace(" ","-",trim($row['title']))?></guid>
         <description><![CDATA[<p><a href="http://www.pornpub.info/video/<?=$row['id']."/".str_replace(" ","-",trim($row['title']))?>" title="<?=$row['title']; ?>"><img src="<?=$row['thumb']; ?>" alt="<?=$row['title']; ?>" /></a></p><p><?=$row['description']; ?></p>]]></description>
    </item>
    <?
    }
    ?>
    </channel>
    </rss>

Pa sam kasnije dodao ovo u header.html fajlu, izmedju heada

<link rel="alternate" type="application/rss+xml" title="PornPub (RSS 2.0)" href="http://www.pornpub.info/rss.php">

E sad ako moze neko da mi pomogne, da kaze gdje sam pogrijesio, prije toga nikad nisam pravio feed , a stvarno mi je neophodan zbog razmjene traffica

Hvala !

Jel neko ima iskustva sa ovim ?


Copyright © 2020 WM Forum - AboutContact - Sponsored by: Mydataknox & Webmaster.Ninja