Code: Select all
function get_files_data(){
$this->getID3 = new getID3;
$output = array();
foreach ( $this->files as $file => $array )
{
$f_info = $this->getID3->analyze($file);
$c_data = array
(
"name" => str_replace('F://video//', "", $file),
"duration" => $f_info['playtime_string'],
"dimensions" => $f_info['video']['resolution_x']." x ".$f_info['video']['resolution_y']
);
array_push($output, $c_data);
}
return $output;
}