<?
ob_start();

include ('botayar.php');

function cek($ursa){

  $ch = curl_init();

  $zaman = 0;

  curl_setopt ($ch, CURLOPT_URL, $ursa);

  curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);

  curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $zaman);

  $rmx = curl_exec($ch);

  curl_close($ch); 

  return $rmx;

}


function temiz($q){
$ara 	= array("'","&amp;","''","'");
$degis	= array("","&","","");
$q = str_replace($ara,$degis,$q);
return $q;


} 

$baglanti = cek("http://rss.haberler.com/rss.asp?kategori=haber");

$parca = explode("<item>",$baglanti);



for($x=1; $x<count($parca); $x++){

preg_match("'<image>(.*?)</image>'si",$parca[$x],$images);

preg_match("'<title>(.*?)</title>'si",$parca[$x],$title);

preg_match("'<link>(.*?)</link>'si",$parca[$x],$link);

preg_match("'<description>(.*?)</description>'si",$parca[$x],$short);

$title = $title[1];

$short   = $short[1];

$images   = $images[1];

$news   = $news[1];

#	echo temiz($title[1])."<br><br><br>";

#	echo temiz($images[1])."<br><br><br>";

$rep = cek($link[1]);

#preg_match("'<h1 itemprop="headline" id="haber_baslik">(.*?)</h1>'si",$rep,$short);



$ex = explode('<p itemprop="articleBody">',$rep);

$ex = explode('</p>',$ex[1]);

$news = $ex[1];

#echo $short[1]."<br><br><br>";

/*

echo 'bebe<br>';

echo $ex[1]."<br>";

*/

?>

<form name="formname" action="kaydet.php?sayfa=kaydet" target="windowName" method="post" onsubmit="window.open('', this.target,'dialog,modal,scrollbars=yes,resizable=no,width=30 0,height=200,left=362,top=284');">



<table width="50%" border="0">

  <tr>

    <th scope="row">Haber Basligi </th>

    <td>:</td>

    <td><input name="title" value="<?=$title;?>" size="50"/></td>

  </tr>

    <tr>

    <th scope="row">Haber Resmi </th>

    <td>:</td>

    <td><input name="images" value="<?=$images;?>" size="50"/></td>

  </tr>

      <tr>

    <th scope="row">Haber Kisa I�erik: </th>

    <td>:</td>

    <td><textarea name="short" cols="50" rows="5"><?=$short;?></textarea></td>

  </tr>

      <tr>

    <th scope="row">Haber I�erigi: </th>

    <td>:</td>

    <td><textarea name="news" cols="50" rows="10"><?=$news;?></textarea></td>

  </tr>

    <tr>

    <th scope="row">Haber Kategorisi: </th>

    <td>:</td>

    <td><select name="cat" style="WIDTH: 150px; height:25px;" class="form2">



	 <?php $catask=mysql_query('select * from category order by name asc');



  while($cat=mysql_fetch_array($catask)){ ?>

	<option value="<?=$cat['id'] ?>"><?=$cat['name'] ?></option>

	<? } ?>

	</select></td>

  </tr>

      <tr>

    <th scope="row"></th>

    <td></td>

    <td><input type="submit" value="Onayla"></td>

  </tr>



</table>

</form>

<hr align="center">

<?

ob_flush();

flush();

usleep(50000);

	

}

?>
Selam arkadaşlar Bir Bot Yazıyorum Haber başlık kısa içerik ve resmini çektirdim fakat birtürlü haber içerigini cekemedim yardımcı olabilecek arkadaşlar yazarmısınız lütfen kodum yukarıdaki gibi