Re: Truncate ::: DAM!!!!!
| From: | vins | Date: | Thu, 18 Jul 2002 19:52:22 +0000 |
| Subject: | Re: Truncate ::: DAM!!!!! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-108326@lists.php.net to get a copy of this message | ||
you know what.... forget this whole thing.... I just need to know how do i
clear the file contents.... set it 0 length....
I cannot delete the file.... no permission....
"Vins" <vins@webonline.co.za> wrote in message
news:20020718194117.31508.qmail@pb1.pair.com...
> LOL......
> So after my last post about updating files i sat and thought about all the
> replies i got... and then a slap on the head solved the "DUH" problem
> ereg_replace("\r\n", "\n", $DBfile);
> I mean..... i am a dork as the best of times..
>
> but now.... there is another problem....
>
> the file length is 10 charactes but the new file length is 15....
> I need to overright everything in the old file and somehow push the file
> length to 15
> it truncates..... what now ???
>
>