To fetch a thumbnail use this (tried and works on one of webs i wrote):
Code: Select all
exec("/usr/bin/ffmpeg -an -y -i $outputdir$outputfile -f mjpeg -t 0:0:5.000 -vframes 1 -ss 0:0:5.000 $outputdir$outputframe");Code: Select all
exec("/usr/bin/ffmpeg -an -y -i $outputdir$outputfile -f mjpeg -t 0:0:5.000 -vframes 1 -ss 0:0:5.000 $outputdir$outputframe");Code: Select all
define('ROOT',$_SERVER['DOCUMENT_ROOT']);Code: Select all
include ROOT.'/folder/something.php';It was just an example, it could beThe Ninja Space Goat wrote:why do people do this:as opposed to this?Code: Select all
$var = $x?true:false;Never understood that.Code: Select all
$var = (bool) $x;
Code: Select all
$var=$x>3?'apple':'banana';Code: Select all
$var = $x?true:false;