Merhaba arkadaşlar;
bir sunucumda çalışan kod bloğu diğer sunucumda çalışmıyor.
sorunlu olun kod bloğunu aşağıda paylaşıyorum.
\Codebird\Codebird::setConsumerKey( ile başlayan satırda hata veriyor. ama diğer sunucumda hata vermeden çalışıyor.
Sorun ne olabilir arkadaşlar?
yardımcı olan arkadaşlara şimdiden teşekkürler.
if($show = mysql_fetch_array($bul)) //Resimli yazılar için bu kısmı çalıştır
{
$img2 = $show["meta_value"];
$bul = mysql_query("SELECT * FROM wp_postmeta WHERE post_id = '$img2' and meta_key = '_wp_attached_file' ");
$show = mysql_fetch_array($bul);
$img_link = $show['meta_value'];//Konu resmi
\Codebird\Codebird::setConsumerKey("WFfGItgyu89FKU Yoh6z7NZZ5N", "LhxX7Gy50qzPS4pUxAatPrECngPeVbLDrcuZuQVHVMRmyN2r0 H");
$cb = \Codebird\Codebird::getInstance();
$cb->setToken("2930691226-cmBbRgGoep1hS9oli2oCrI7DWlAYO5HjFS9w7HO", "mH91RKZLyHVdhHY3UnAN67Ernjm6VJAd8TgjpLLRLBXAx ");
$params = array(
'status' => short_article($array[$random][1],100)." ".$array[$random][2],
'media[]' => ABSPATH.'wp-content/uploads/'.$img_link
);
$reply = $cb->statuses_updateWithMedia($params);
}
verdiği hata ise şu şekilde.
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/interior/public_html/bot/bot.php on line 60
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/interior/public_html/bot/bot.php on line 60
Parse error: syntax error, unexpected T_STRING in /home/interior/public_html/bot/bot.php on line 60