Re: [PHP] Please have a look at my function

2004-08-18 Thread Jason Wong
On Thursday 19 August 2004 08:11, Mag wrote: > I dont know regex very well but I am using one below > that I modified from the web: > return eregi_replace('', '', $string); > Its working great for 1 file, but when I put it into a > for loop to handle multiple filesit takes ages for > 10 fi

[PHP] Please have a look at my function

2004-08-18 Thread Mag
Hello, I dont know regex very well but I am using one below that I modified from the web: ** Start code** function RStripHeader($string) { return eregi_replace('', '', $string); } $the_file = "something.html"; $content = RStripHeader(file_get_contents($the_file)); $fhandle = fopen($the_file, "