Tohou
04-28-2008, 12:30 PM
if (file_exists('.$page .'.jpg')) {
echo "Thumbnail";
} else {
$Image = $row['Image'];
$url = $Image;
preg_match("/[^\/]+$/",$url,$matches);
$file_name = $matches[0];
$filename_end = "/files/'.$file_name.'";
exec ('mplayer -ss 60 -nosound -vo jpeg -frames 2 ".$filename_end."');
exec ('cp 00000001.jpg ".$page.".jpg');
exec ('rm 00000001.jpg');
}
I think:
$filename_end = "/files/'.$file_name.'";
exec ('mplayer -ss 60 -nosound -vo jpeg -frames 2 ".$filename_end."');
is wrong but don't know really the proper way.
echo "Thumbnail";
} else {
$Image = $row['Image'];
$url = $Image;
preg_match("/[^\/]+$/",$url,$matches);
$file_name = $matches[0];
$filename_end = "/files/'.$file_name.'";
exec ('mplayer -ss 60 -nosound -vo jpeg -frames 2 ".$filename_end."');
exec ('cp 00000001.jpg ".$page.".jpg');
exec ('rm 00000001.jpg');
}
I think:
$filename_end = "/files/'.$file_name.'";
exec ('mplayer -ss 60 -nosound -vo jpeg -frames 2 ".$filename_end."');
is wrong but don't know really the proper way.