Its syntax is: int filesize (string filename) <? $fs = filesize("data.txt"); print "Pastry.txt is $fs bytes."; ?>