- Katılım
- 16 Ağustos 2012
- Mesajlar
- 8
- Reaction score
- 0
merhaba, elimde wordpress "özel alanlar" kısmında oluşturduğum vimeo_id adında bir değişken var. ve bu değişkeni aşağıdaki funtion ve image tagına kalın harflerle yazılı olan 94776965 sayısının yerine çekmek istiyorum. nasıl yapabilirim?
<?php
function getVimeoInfo($id, $info = 'thumbnail_large') {
if (!function_exists('curl_init')) die('CURL is not installed!');
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://vimeo.com/api/v2/video/94776965.php");
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
$output = unserialize(curl_exec($ch));
$output = $output[0][$info];
curl_close($ch);
return $output;
}
?>
<?php
function getVimeoInfo($id, $info = 'thumbnail_large') {
if (!function_exists('curl_init')) die('CURL is not installed!');
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://vimeo.com/api/v2/video/94776965.php");
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
$output = unserialize(curl_exec($ch));
$output = $output[0][$info];
curl_close($ch);
return $output;
}
?>