I\'m including a custom.css file in my template to allow site owners to add their own css rules. However, when I ship the file, its empty and there\'s no sense loading it if
Using filesize() is clearly better. It uses stat() which doesn't have to open the file at all.
filesize()
stat()
file_get_contents() reads the whole file.. imagine what happens if you have a 10GB file.
file_get_contents()