Il warning che ricevi è dato dalla funzione filesize... e sulla documentazione riporta testualmente "Returns the size of the file in bytes, or FALSE (and generates an error of level E_WARNING) in case of an error."... quindi, verifica che il tuo script sia in grado di leggere dal filesystem i file che passi a questa funzione o che questi non siano corrotti.