Как узнать, пуст ли файл в php
## CHECKS IF FILE IS EMPTY
if ($_FILES['file']['size'] == 0 && $_FILES['file']['error'] == 0)
{
// file is empty (and not an error)
}
Nar
## CHECKS IF FILE IS EMPTY
if ($_FILES['file']['size'] == 0 && $_FILES['file']['error'] == 0)
{
// file is empty (and not an error)
}