Hi
I have a .dat file, and I want to get my php code to find out if it is empty, or got stuff in.
I've tried strlen() and empty() but it hasnt worked.
What code should I use?
Cheers for any help
well.. technically couldn't you open the file first then check to see if it was empty?
jared
u can't directly use strlen() or empty() function to check if a file is empty or not. u have to open the file first then u've to check if there are any content in it or u could just check the file size
filesize($filepath);