note 7227 modified in filesize by ronabop

From: Date: Fri, 01 Sep 2000 03:07:53 +0000
Subject: note 7227 modified in filesize by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-3849@lists.php.net to get a copy of this message
Method of checking if a file is empty. $file="$LLQE_$date.txt"; $header = fopen("$file","a+"); if (filesize($file)==0) { echo "The file is empty"; } I had some trouble with it at first. http://www.php.net/manual/function.filesize.php

« previous php.notes (#3849) next »