@alemextra; aşağıdaki gibi kullanabilirsin. ilgili fonksiyonu baglan.php içerisine taşımanı öneririm


<?php
include 'baglan.php';
function fastPost($url, $post = false) {
    $curl = curl_init();
    curl_setopt($curl, CURLOPT_URL, $url);
    curl_setopt($curl, CURLOPT_REFERER, "http://www.google.com/");
    curl_setopt($curl, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);    
    curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
    if ($post!==false && !empty($post)) {
        curl_setopt($curl, CURLOPT_POST, true);
        curl_setopt($curl, CURLOPT_POSTFIELDS, is_array($post) ? http_build_query($post) : $post);
    }
    $data = curl_exec($curl);
    curl_close($curl);
    return $data;
}
?>
<!DOCTYPE html>
<html>
  <head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <title></title>
  </head>
  <body>
      <table>
          <tr>

          </tr>
          <?php
          $cek = mysql_query("select * from tabloadi");
          while($yaz = mysql_fetch_assoc($cek)){
          ?>
          <tr>

            <?php echo fastPost('http://site.com/api/index.php', array('text' => $yaz['icerik'], 'link' => 'http://site.com-tiklenincek-sayfa.php')); ?>

          </tr>
          <?php
          }
          ?>
      </table>
  </body>
</html>