Extracting video dimensions from an FLV file?
Posted: Thu Jul 09, 2009 11:35 pm
Without using the getid3 library, can this be accomplished with "getimagesize()"?
In my code, I have 2 conditions:
I'm ignorantly unable to understand why it keeps hitting the first IF. Anyone know? I know for a fact that $file is the name of the file (I've checked using echo--it's the correct name). It seems as if the script is unable to look in the sub-directory "movies."
In my code, I have 2 conditions:
Code: Select all
if(!getimagesize("movies/{$file}")){
$info = 'Someone call the police!';
$width = $info;
$height = $info;
}else{
$info = getimagesize("movies/{$file}");
$width = $info[0];
$height = $info[1];
}