Yusuf-Yildiz Posted July 11, 2011 Share Posted July 11, 2011 (edited) [b]Ben http://www.kokludegisim.net sitesinde haberler bölümüne RSS bağlantısı eklemek istiyorum. Site benim. Kullanıcıların bu haberler kısmını RSS yoluyla alması için ne yapmalıyım? Ya da bunu hazır yapan bir site var mı?[/b] Edited July 11, 2011 by severalnasty Quote Link to comment Share on other sites More sharing options...
mfs776 Posted July 11, 2011 Share Posted July 11, 2011 siten açılmıyor o yüzden bakamadım hazır bir script mi kullanıyorsun veya asp ya da php ile kendin mi kodladın eğer bil dil ile kodlandıysa rss akışı yapabiliriz ama site html ise bir yolu yok Quote Link to comment Share on other sites More sharing options...
Yusuf-Yildiz Posted July 11, 2011 Author Share Posted July 11, 2011 [quote name='mfs776' date='11 July 2011 - 14:47 ' timestamp='1310384856' post='1044515'] siten açılmıyor o yüzden bakamadım hazır bir script mi kullanıyorsun veya asp ya da php ile kendin mi kodladın eğer bil dil ile kodlandıysa rss akışı yapabiliriz ama site html ise bir yolu yok [/quote] [b]Php kodlama...[/b] Quote Link to comment Share on other sites More sharing options...
mfs776 Posted July 11, 2011 Share Posted July 11, 2011 siteni bir canlı görebilsem, ancak php kodlama ise rss akışı yazmak pek zor olmayacak benim için Quote Link to comment Share on other sites More sharing options...
mfs776 Posted July 11, 2011 Share Posted July 11, 2011 ayrıca hazır yapan site var mı demişsin böyle bir şey mümkün değil feedburner i diyorsan o sadece varolan bir rss den kullanıcılara yeni rss eklendiğinde mail atmasını sağlar yani scrip içeriğinde rss yoksa hiç bir site ile bunu yapamazsın rss.php oluşturacağız siteni bir görebilseydim iyi olacaktı Quote Link to comment Share on other sites More sharing options...
Yusuf-Yildiz Posted July 11, 2011 Author Share Posted July 11, 2011 (edited) [b]Çok pardon kardeşim... .com değilde .net Kendi sitemin adresini yanlış yazıyorum... [/b][img]http://www.tnctr.com/public/style_emoticons/default/whistle.gif[/img] [b]Arkadaşlar ben bir rss ekledim fakat mysql veritabanından veriyi çekmiyor. Nasıl yapabilirim?[/b] [b] [/b] http://www.kokludegisim.net/RSS4.php Edited August 2, 2011 by severalnasty Quote Link to comment Share on other sites More sharing options...
mfs776 Posted August 2, 2011 Share Posted August 2, 2011 rss içerisine gerekli kodları yazdın mı Quote Link to comment Share on other sites More sharing options...
Yusuf-Yildiz Posted August 2, 2011 Author Share Posted August 2, 2011 (edited) [b]O kadar ayrıntılı değil kardeşim;[/b] [b] [/b] [code]<?php include "dbcon.php"; header('Content-Type: text/xml'); echo '<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0"> <channel> <title>KöklüDeğişim Haberler</title> <description>Suskunluğun Kırılma Noktası...</description> <link>http://www.kokludegisim.net/</link>'; $rssSql = mysql_query("SELECT * FROM tablo order by id desc limit 20"); while($rss = mysql_fetch_assoc($rssSql)) { echo " <item> <title>$rss[baslık]</title> <link>$rss[link]</link> <pubDate>$rss[tarih]</pubDate> <description>$rss[ıcerik]</description> <category>$rss[kategorı]</category> </item> "; } echo " </channel> </rss>"; ?>[/code] [b]dbcon;[/b] [code]<?php $host = "localhost"; $dbkullanici ="*********"; $dbsifre ="*********************"; $dbadi ="****************"; //MySQL bağlantısı $baglan = mysql_connect($host,$dbkullanici,$dbsifre); if(! $baglan) die ("MySQL Bağlantı Hatası"); mysql_select_db($dbadi) or die ("Veritabanı"); ?>[/code] Edited August 2, 2011 by severalnasty Quote Link to comment Share on other sites More sharing options...
mfs776 Posted August 2, 2011 Share Posted August 2, 2011 biraz bekle hazırlayıp vereceğim Quote Link to comment Share on other sites More sharing options...
mfs776 Posted August 2, 2011 Share Posted August 2, 2011 (edited) [code]<?php include "dbcon.php"; @header("Content-type: text/xml\n\n"); echo '<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0"> <channel> <title>Köklü Değişim</title> <description>Suskunluğun Kırılma Noktası...</description> <link>http://kokludegisim.net</link> <language>en-us</language> '; //50 veri çekiyor bunu değiştirebilirsin $baglan = mysql_query("SELECT* FROM tabloadi ORDER BY id ASC limit 0,50"); while ($veri=mysql_fetch_assoc($baglan) ) { echo "<item> <title>".$veri['baslik']."</title> <description>".$veri['aciklama']."</description> <link>http://kokludegisim.net/index.php?kd=makaleoku&id=.$veri['id']."</link> </item>"; } echo "</channel></rss>"; ?>[/code] id açıklama başlık gibi kısımları kendine göre düzenle script elimde olmadığından yapamıyorum Edited August 2, 2011 by mfs776 Quote Link to comment Share on other sites More sharing options...
Yusuf-Yildiz Posted August 2, 2011 Author Share Posted August 2, 2011 (edited) [b]Hata alıyorum kardeşim....[/b] http://kokludegisim.net/RSS5.php Msn varsa ordan konuşalım kardeşim... Edited August 2, 2011 by severalnasty Quote Link to comment Share on other sites More sharing options...
mfs776 Posted August 2, 2011 Share Posted August 2, 2011 (edited) bunun benim verdiğim kod olduğuna emin misiniz benim verdiğim kod 25 satır verdiği hata 41. satırda gerçekleşmiş Edited August 2, 2011 by mfs776 Quote Link to comment Share on other sites More sharing options...
Yusuf-Yildiz Posted August 3, 2011 Author Share Posted August 3, 2011 [quote name='mfs776' date='02 August 2011 - 17:51 ' timestamp='1312296665' post='1055872'] bunun benim verdiğim kod olduğuna emin misiniz benim verdiğim kod 25 satır verdiği hata 41. satırda gerçekleşmiş [/quote] [b]Kardeşim msn'den konuşalım veya özelden bu iş uzar...[/b] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.