On Sun, December 30, 2007 11:20 am, Scott Wilcox wrote:
> Is it possible with PHP to remove a certain number of bytes from a
> file,
> purely within PHP?
>
> If so, does someone have an example of doing this, removing the first
> 230 bytes from a file.
Something like this might work:
--
Some p
message --
> > From: Benjamin Darwin <[EMAIL PROTECTED]>
> > Date: Dec 30, 2007 2:12 PM
> > Subject: Re: [PHP] Using PHP to remove certain number of bytes from file
> > To: Scott Wilcox <[EMAIL PROTECTED]>
> >
> >
> > Try this:
>
M
> Subject: Re: [PHP] Using PHP to remove certain number of bytes from file
> To: Scott Wilcox <[EMAIL PROTECTED]>
>
>
> Try this:
>
> $file_data = file_get_contents('filename', false, null, 230);
> file_put_contents('filename', $file_dat
On Sun, 2007-12-30 at 17:20 +, Scott Wilcox wrote:
> Is it possible with PHP to remove a certain number of bytes from a file,
> purely within PHP?
Yes. Why wouldn't it?
> If so, does someone have an example of doing this, removing the first
> 230 bytes from a file.
No, that's an awfully sp
Maybe one of these days I'll remember to actually reply to the list the
first time.
-- Forwarded message --
From: Benjamin Darwin <[EMAIL PROTECTED]>
Date: Dec 30, 2007 2:12 PM
Subject: Re: [PHP] Using PHP to remove certain number of bytes from file
To: Scott Wil
Is it possible with PHP to remove a certain number of bytes from a file,
purely within PHP?
If so, does someone have an example of doing this, removing the first
230 bytes from a file.
Thanks,
Scott.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
6 matches
Mail list logo