Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to determine if file is empty in php

## CHECKS IF FILE IS EMPTY
if ($_FILES['file']['size'] == 0 && $_FILES['file']['error'] == 0)
{
    // file is empty (and not an error)
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #determine #file #empty #php
ADD COMMENT
Topic
Name
4+1 =