Page 1 of 1

filesize() and reading a file probelms

Posted: Mon Feb 21, 2005 8:41 am
by giaCo
Hi there,

I am having a poblem reading the contents of the file. The file must be read each time a certain php script is visited in my site.

The problem is that filesize() is returning 1799 regardless of how big the file is. and therefore is not reading to the end of the file. I am echoing out the contents and it doesnt go to the end. the file will be a different length each time it is opened.

any help would be hugely appreciated!!!!

Thanks :)

Posted: Mon Feb 21, 2005 8:55 am
by feyd
file_get_contents()

In all probability, the size information is being cached..