Re: [PHP] Parsing HTML files

2004-09-10 Thread Peter Brodersen
On Fri, 10 Sep 2004 11:58:58 +0100, in php.general [EMAIL PROTECTED] (Abdul-Wahid Paterson) wrote: >> I was wondering if any classes/functions could help me with this little >> challenge, (im hopeless at regex ;-) >> >> > >No easy way of doing it, regex somthing like: > >$id = preg_replace("/.*/

Re: [PHP] Parsing HTML files

2004-09-10 Thread Nick Wilson
* and then Abdul-Wahid Paterson declared > No easy way of doing it, regex somthing like: > > $id = preg_replace("/.*/", $1, $string); > > where $string is a line from your input'd HTML page OK, thanks abdul, much appreciated.. -- Nick W -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Parsing HTML files

2004-09-10 Thread Abdul-Wahid Paterson
No easy way of doing it, regex somthing like: $id = preg_replace("/.*/", $1, $string); where $string is a line from your input'd HTML page Abdul-Wahid On Fri, 10 Sep 2004 12:54:37 +0200, Nick Wilson <[EMAIL PROTECTED]> wrote: > Hi all, > > I was wondering if any classes/functions could help

Re: [PHP] Parsing HTML files?

2001-07-07 Thread Chris Lambert - WhiteCrown Networks
For parsing, your best bet would be regular expressions. If you aren't familiar with them, then this would most likely be a custom programming job, as there's no such thing as an off the shelf parsing routine. www.php.net/preg_match_all would be the best function to use to parse, and you should g

RE: [PHP] Parsing HTML files?

2001-07-07 Thread Maxim Maletsky
Yeah it is doable, just use fsockopen, and parse the input into your database and go wild. Keep in mind - doing it directly on request is VERY slow. You should be pre-parsing it and then showing the data from your resources. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.co