
February 6th, 2000, 06:52 AM
|
|
Junior Member
|
|
Join Date: Feb 2000
Posts: 3
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Hi itīs me again with a better decription:
the following script checks the size of a file, adds something to the file and then checks the filesize again.
The Problem: itīs both the same size, but this actualli canīt be. How do I get the real size after the adding?
See the error also at: http://www.seeagency.de/t.php3
$file = "test.txt";
$size=filesize($file);
echo $size."n<br>n";
$addtext="This text will be addes to the file!!n";
$open=fopen($file, "a");
fputs($open, $addtext);
fclose($open);
$size=filesize($file);
echo $size;
thanks a 1000 times,
Kai Seefeldt
|