Re: [PHP] Using PHP to remove certain number of bytes from file

2007-12-30 Thread Richard Lynch
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

Re: Fwd: [PHP] Using PHP to remove certain number of bytes from file

2007-12-30 Thread Casey
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: >

Re: Fwd: [PHP] Using PHP to remove certain number of bytes from file

2007-12-30 Thread Robert Cummings
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

Re: [PHP] Using PHP to remove certain number of bytes from file

2007-12-30 Thread Robert Cummings
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

Fwd: [PHP] Using PHP to remove certain number of bytes from file

2007-12-30 Thread Benjamin Darwin
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

[PHP] Using PHP to remove certain number of bytes from file

2007-12-30 Thread Scott Wilcox
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