Muhtemelen basit bişey ama yetersizim bu konuda.. yardımınıza ihtiyacım var...
şimdi iki ayrı php dosyam var...
1 tanesi bir tablodan içerik cekip gösteren sayfa... (Aşağıda kodları)
1-
<?php
include 'baglan.php';
?>
<!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 $yaz['icerik']; ?>
</tr>
<?php
}
?>
</table>
<?php
// put your code here
?>
</body>
</html>2 - diğeri curl ile ileti gönderen bir phep sayfası (kodları aşağıda)<?php
header ("Content-Type: text/html; charset=utf-8");
$deger = "text=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx&link=http://site.com-tiklenincek-sayfa.php&";
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, "http://site.com/api/index.php");
curl_setopt($curl, CURLOPT_REFERER, "http://www.google.com/");
curl_setopt($curl, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
curl_setopt($curl, CURLOPT_RETURNTRANSFER,true);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, $deger);
$output=curl_exec($curl);
curl_close($curl);
echo $veri;
?>şimdi istediğim bu iki sayfayı birleştirip " xxxxxxxxxxxxxx " olan text içeriğine 1 kodddaki tablodaki içeriği (<?php echo $yaz['icerik']; ?>) çekip ileti olarak göndermesini sağlamak istiyorum...
kodları birleştirebilirmisiniz rica etsem...

