include("Php/VideoClass.php"); $VideoChooser = false; $VideoArray = array(); $FileArray = array(); $dir = "Videos"; $dh = opendir($dir); while(($file = readdir($dh)) != false){ if(substr($file, -3) == "php"){ array_push($FileArray, $file); } } sort($FileArray); $FileArray = array_reverse($FileArray); array_unshift($FileArray, $FileArray[count($FileArray)-1]); array_pop($FileArray); foreach($FileArray as $file) { include("Videos/$file"); array_push($VideoArray,new Video($Name, $Text, $Link) ); //echo $file; } if(empty($_GET["vnum"])) { $VideoNumber = 0; } else { $VideoNumber = $_GET["vnum"]; } //$url = 'http://vimeo.com/api/clip/1013141/php'; //$contents = @file_get_contents($url); //$array = @unserialize(trim($contents)); //print_r($array); //echo $VimeoMetaArray["user_thumbnail_small"]; //echo @vimeo.videos.getThumbnailUrl; //[user_thumbnail_small] ?>