Re: [PHP] ftruncate

2007-03-15 Thread Tijnema !
On 3/15/07, Richard Lynch <[EMAIL PROTECTED]> wrote: On Thu, March 15, 2007 4:57 am, Swati Asthana wrote: > Is there any function in php through which we can delete / truncate > the > content of a text file that is before the file pointer/file handler ? > > can we use truncate? > actually im usin

Re: [PHP] ftruncate

2007-03-15 Thread Richard Lynch
On Thu, March 15, 2007 4:57 am, Swati Asthana wrote: > Is there any function in php through which we can delete / truncate > the > content of a text file that is before the file pointer/file handler ? > > can we use truncate? > actually im using a function to pick the content from a text file > usi

[PHP] ftruncate

2007-03-15 Thread Swati Asthana
hi, Is there any function in php through which we can delete / truncate the content of a text file that is before the file pointer/file handler ? can we use truncate? actually im using a function to pick the content from a text file using 2 delimiters, but that function checks only the first ins

[PHP] ftruncate() and stream wrappers

2005-06-15 Thread Justin Hannus
I dont see support for using ftruncate() on user defined stream wrappers. When I try to truncate one I get an E_WARNING: Warning: ftruncate() [function.ftruncate]: Can't truncate this stream! Does anyone know of a way to truncate a user defined stream wrapper using php's file system or stream