Skip to content

Instantly share code, notes, and snippets.

@bubblun
bubblun / gist:9790114
Created March 26, 2014 18:32
Get Vimeo MP4 URL
function getVimeoMP4($vimeo_id) {
$result = file_get_contents( "http://keepvid.com/?url=http%3A%2F%2Fvimeo.com%2F" . $vimeo_id );
preg_match_all('/"(http\:\/\/pdl.vimeocdn.com.+?)"/i', $result, $matches);
return $matches[1][1];
}