size checks on php file