php youtube ripper function getVideo($url) { $return = ''; $data = file_get_contents($url); if ( preg_match_all("/&t=[^&]*/", $data, $matches) ) { $t = $matches[0][0]; $t = preg_split("/=/", $t); $t = $t[1]; $v = $url; $v = preg_split ("/\?v=/", $v); $v = $v[1]; $return = "http://www.youtube.com/get_video.php?video_id=" . $v . "&t=". $t . "&.flv"; } else { $return = "null"; } return $return; } $link = getVideo('http://www.youtube.com/watch?v=IxIOAXM67TU&NR=1'); echo $link; //header($link); salve