Re: [PHP] Editing files by line

2002-07-11 Thread Chris Earle
Cool thanks, that probably will make my code execute a decent bit faster (as the file gets larger). But the array_search function never works for me (don't know why, I know exactly what I'm searching for and that it is there), so I made my own function.. //Find and return first occurance of a st

Re: [PHP] Editing files by line

2002-07-10 Thread Analysis & Solutions
On Thu, Jul 11, 2002 at 02:11:30PM +1000, Martin Towell wrote: >> From: Chris Earle [mailto:[EMAIL PROTECTED]] >> >> I was wondering if there was a function that would allow me to "jump" >> to a certain line if a file and then write from there? I'm searching >> php.net without any luck :(. > >

Re: [PHP] Editing files by line

2002-07-10 Thread Chris Earle
> -Original Message- > From: Chris Earle [mailto:[EMAIL PROTECTED]] > Sent: Thursday, July 11, 2002 2:10 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Editing files by line > > > I was wondering if there was a function that would allow me to "jump" to a > certa

RE: [PHP] Editing files by line

2002-07-10 Thread Martin Towell
nt); fclose($f); (not tested, but should work as is) some error checking would also be good :) -Original Message- From: Chris Earle [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 2:10 PM To: [EMAIL PROTECTED] Subject: [PHP] Editing files by line I was wondering if there was

[PHP] Editing files by line

2002-07-10 Thread Chris Earle
I was wondering if there was a function that would allow me to "jump" to a certain line if a file and then write from there? I'm searching php.net without any luck :(. Also, if there is not specific function, is there a trick that gives the same effect (without reading the entire file line by li