$imgname=$_GET['img'];
if( isset($imgname) && !empty($imgname) )
{
$img_folder = 'http://online.verypdf.com/sharescreenshot/uploads/';
$img_file = $img_folder.$imgname;
$strDestFileHTTP = "http://online.verypdf.com/shareshot?img=".$imgname;
echo '

 ’;
echo ‘‘ . $strDestFileHTTP . ‘

‘;
echo ‘'.$imgname.'‘;
echo ‘


‘;
$strImageFile = $_SERVER["DOCUMENT_ROOT"].’/sharescreenshot/uploads/’.$imgname;
$size = GetImageSize($strImageFile);
//echo “File =” .$strImageFile.”
“;
echo “Image File Size = “.formatbytes($strImageFile, “KB”).”
“;
//echo “Image File Size = “.filesize($strImageFile).”Byte
“;
echo “Image Width = ” .$size[0].” Pixel
“;
echo “Image Height = “.$size[1].” Pixel
“;
}
function formatbytes($file, $type)
{
switch($type){
case “KB”:
$filesize = filesize($file) * .0009765625; // bytes to KB
break;
case “MB”:
$filesize = (filesize($file) * .0009765625) * .0009765625; // bytes to MB
break;
case “GB”:
$filesize = ((filesize($file) * .0009765625) * .0009765625) * .0009765625; // bytes to GB
break;
}
if($filesize <= 0){
return $filesize = 'unknown file size';}
else{return round($filesize, 2).' '.$type;}
}
?>





See Also:

ShareShot Features and User Guide


Capture and share screen images easily.


How to Use VeryPDF ShareShot?


Shows information about your IP, browser, network and system.


Top