View Single Post
ישן 29-08-12, 21:42   # 15
meshuga
הנהלת הפורום לשעבר
 
meshuga's Avatar
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
גיל: 35
הודעות: 7,601

meshuga לא מחובר  

שוב טיפה להסתכל..לא מסובך...

PHP קוד:
$video_ID 'your-video-ID';
$JSON file_get_contents("https://gdata.youtube.com/feeds/api/videos/{$video_ID}?v=2&alt=json");
$JSON_Data json_decode($JSON);
//כותרת
$title $JSON_Data->{'entry'}->{'title'}->{'$t'};
//"תוכן"
$content $JSON_Data->{'entry'}->{'content'}->{'$t'};
echo 
$title."<br />";
echo 
$content
  Reply With Quote