true, 'maxRedirs' => 5, ));
$theimageinfo = getimagesize($sourceFilePath);
$thepp = $_SESSION['USERID'];
if ($theimageinfo[2] == 1) {
$thepp .= ".gif";
} elseif ($theimageinfo[2] == 2) {
$thepp .= ".jpg";
} elseif ($theimageinfo[2] == 3) {
$thepp .= ".png";
}
$myvideoimgnew = "/home/entendu/public_html/images/membersprofilepic/" . $thepp;
$thumb = PhpThumbFactory::create($sourceFilePath);
$thumb -> save($myvideoimgnew);