|
Posted by The Natural Philosopher on 11/21/07 22:47
jools@by.com wrote:
> Just so you dont all think I'm completely mad - if I just do this
>
> // unlink('text.txt');
>
> and leave the text file on the drive - the output at sequence 2 is
> suddenly correct.
> (I have tried clearstatcache(); at various places too...)
>
> I'll post the sample as soon as I've cut it down.
>
> thanks
> -jools-
>
You should be doing fopen(), fwrite(), fread(),fclose() & unlink ().
In this case I doubt the file will ever appear on any disk at all, but
it should be consistent within php itself.
If as I discovered, you want to do something outside PHP with it. its
fopen(), fwrite(), fclose(), copy(), exec [do something else], unlink(),
unlink(copy);
[Back to original message]
|