filesize() and reading a file probelms

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
giaCo
Forum Newbie
Posts: 7
Joined: Thu Dec 02, 2004 6:34 am

filesize() and reading a file probelms

Post 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 :)
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

file_get_contents()

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