Forum Moderators: coopster

Message Too Old, No Replies

Searching HTML code with PHP

         

j2trumpet

2:04 am on Jan 15, 2010 (gmt 0)

10+ Year Member



I need to write a script that will look at the HTML code generated by another PHP script, search that code for a specified string (opening td tag with attributes), load the code between that string and another specified string (closing td tag) into a variable, then loop until it doesn't find anymore instances of the first specified string. Can someone please help me?

TheMadScientist

2:36 am on Jan 15, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



This thread might help:

PHP to parse HTML [webmasterworld.com]

I think it was one of the last couple posts with the best answer, using PHPs DOM method... I didn't look at the thread when finding the link, so I don't remember exactly which post it was, but if I remember correctly one of the last couple posts seemed to contain the best answer.