include $DOCUMENT_ROOT."/config.php"; if (!empty($img)) { $img_path = $DOCUMENT_ROOT.'/tuningupload/'.$img; if (file_exists($img_path)) { $img_size = getimagesize($img_path); $img_width = $img_size[0]; $img_height = $img_size[1]; ?>