Re: [PHP] Parsing question from newbie

2001-08-06 Thread Queen
On Sun, 5 Aug 2001, Craig Westerman wrote: > >$url = 'http://www.php.net'; >$lines_array = file($url); >$lines_string = implode('', $lines_array); >eregi("(.*)", $lines_string, $head); >echo $head[0]; >?> > >It prints out: >PHP: Hypertext Preprocessor > >How do I modify this to get what is betwee

[PHP] Parsing question from newbie

2001-08-05 Thread Craig Westerman
I found this little script called grab'n & pars'n on the net. It looks like it could be very useful to learn how it does what it does. While studying it I came up with a question. http://www.php.net'; $lines_array = file($url); $lines_string = implode('', $lines_array); eregi("(.*)", $lines_strin