On my image hosting site they're is a 1MB filesize limit, the script I use to check that is:
1st question: are there 1,000,000 bytes in a megabyte
2nd question: would that work?
PHP:
//Check the size
if(!filesize($_FILES['uploadedfile']['name']) <= 1000000){
echo "File too large!"
echo "<p>Maximum size is 1MB</p>"
die("")
}
1st question: are there 1,000,000 bytes in a megabyte
2nd question: would that work?




