$result = curl_exec($ch);
$httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
if($httpcode == 200) {
$result = json_decode($result, true);
if(json_last_error() == JSON_ERROR_NONE) {
if(isset($result['link'])) {
// @header(sprintf("Location: %s", $result['link'])); // alttakini deneyebilirsin iframe için
echo sprintf('<iframe src="%s" width="100%%" height="360" frameborder="0" scrolling="no" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>', $result['link']);
}
} else {
echo sprintf("json error : %s", json_last_error_msg());
}
} else {
echo sprintf("http error (%s)", $httpcode);
}
exit;
böyle bi imkanımız var yani harika valla