Code has been added to clipboard!

Checking PHP File Size

Example
// Checking file size
if ($_FILES["file_to_upload"]["size"] > 500000) {
    echo "File too big.";
    $upload_ok = 0;
}