hatalı olan satır;
foreach($tjson->results as $content){ 7
●1.172
<?php
}
function tt(){
if(isset($_POST['keyword']) && $_POST['keyword']!=''){
$page = 1;
if(isset($_POST['page'])) $page = $_POST['page'];
$tjson = json_decode(file_get_contents("https://twitter.com/search?q=".rawurlencode($_POST['keyword'])."&rpp=10&include_entities=true&lang=tr&result_type=mixed&page={$page}"));
foreach($tjson->results as $content){
?> $tjson = json_decode(file_get_contents("https://twitter.com/search?q=".rawurlencode($_POST['keyword'])."&rpp=10&include_entities=true&lang=tr&result_type=mixed&page={$page}"),true);şu şartlarda sayfa indirilip json decode işlemi başarılı olursa $tjson bir dizi olur...foreach($tjson->results as $content){